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{}
|
||||
case CMDBlock:
|
||||
p = &core.Block{}
|
||||
case CMDConsensus:
|
||||
// Stubbed out for now, see #431.
|
||||
return nil
|
||||
case CMDGetBlocks:
|
||||
fallthrough
|
||||
case CMDGetHeaders:
|
||||
|
|
Loading…
Reference in a new issue