network: decode CMDNotFound

We don't react on this command, but we should be able to decode it.
This commit is contained in:
Anna Shaleva 2020-08-18 14:24:27 +03:00
parent 58af143f25
commit 18691430fd

View file

@ -159,6 +159,8 @@ func (m *Message) decodePayload() error {
p = &payload.MerkleBlock{}
case CMDPing, CMDPong:
p = &payload.Ping{}
case CMDNotFound:
p = &payload.Inventory{}
default:
return fmt.Errorf("can't decode command %s", m.Command.String())
}