Merge pull request #1333 from nspcc-dev/network/decode_cmdnotfound
network: decode CMDNotFound
This commit is contained in:
commit
b11ee92202
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue