From 18691430fd4245b7b18253f1a2430e68f5f09961 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 18 Aug 2020 14:24:27 +0300 Subject: [PATCH] network: decode CMDNotFound We don't react on this command, but we should be able to decode it. --- pkg/network/message.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/network/message.go b/pkg/network/message.go index 502ebbaed..bb9d86f3f 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -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()) }