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:
Roman Khimov 2019-10-17 11:28:58 +03:00
parent 56459c6c63
commit 3f6104ef4d

View file

@ -184,6 +184,9 @@ func (m *Message) decodePayload(br *io.BinReader) error {
p = &payload.AddressList{}
case CMDBlock:
p = &core.Block{}
case CMDConsensus:
// Stubbed out for now, see #431.
return nil
case CMDGetBlocks:
fallthrough
case CMDGetHeaders: