forked from TrueCloudLab/neoneo-go
network: decode CMDNotFound
We don't react on this command, but we should be able to decode it.
This commit is contained in:
parent
58af143f25
commit
18691430fd
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ func (m *Message) decodePayload() error {
|
||||||
p = &payload.MerkleBlock{}
|
p = &payload.MerkleBlock{}
|
||||||
case CMDPing, CMDPong:
|
case CMDPing, CMDPong:
|
||||||
p = &payload.Ping{}
|
p = &payload.Ping{}
|
||||||
|
case CMDNotFound:
|
||||||
|
p = &payload.Inventory{}
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("can't decode command %s", m.Command.String())
|
return fmt.Errorf("can't decode command %s", m.Command.String())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue