Merge pull request #1333 from nspcc-dev/network/decode_cmdnotfound

network: decode CMDNotFound
This commit is contained in:
Roman Khimov 2020-08-18 14:50:46 +03:00 committed by GitHub
commit b11ee92202
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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())
}