forked from TrueCloudLab/neoneo-go
network: ignore consensus messages
It's a temporary stub until proper encoding/decoding is implemented. It's useful for testnet/mainnet connections because without it consensus message receival leads to peer disconnection.
This commit is contained in:
parent
56459c6c63
commit
3f6104ef4d
1 changed files with 3 additions and 0 deletions
|
@ -184,6 +184,9 @@ func (m *Message) decodePayload(br *io.BinReader) error {
|
||||||
p = &payload.AddressList{}
|
p = &payload.AddressList{}
|
||||||
case CMDBlock:
|
case CMDBlock:
|
||||||
p = &core.Block{}
|
p = &core.Block{}
|
||||||
|
case CMDConsensus:
|
||||||
|
// Stubbed out for now, see #431.
|
||||||
|
return nil
|
||||||
case CMDGetBlocks:
|
case CMDGetBlocks:
|
||||||
fallthrough
|
fallthrough
|
||||||
case CMDGetHeaders:
|
case CMDGetHeaders:
|
||||||
|
|
Loading…
Reference in a new issue