From 4f6090cebf9ad3e143ee08b1c096ccaa014a8d6d Mon Sep 17 00:00:00 2001 From: anthdm Date: Sat, 27 Jan 2018 17:40:06 +0100 Subject: [PATCH] added inventory message types --- pkg/network/message.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/network/message.go b/pkg/network/message.go index 4589e64c5..84099c555 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -157,6 +157,11 @@ func (m *Message) decodePayload(r io.Reader) error { if err := p.Decode(tr); err != nil { return err } + case cmdInv: + p = payload.Inventories{} + if err := p.Decode(tr); err != nil { + return err + } default: return fmt.Errorf("unknown command to decode: %s", m.commandType()) }