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{}
|
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