diff --git a/pkg/network/message.go b/pkg/network/message.go index 638289192..9e79a89e4 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -201,6 +201,8 @@ func (m *Message) decodePayload(r io.Reader) error { if err := p.DecodeBinary(buf); err != nil { return err } + case CMDGetBlocks: + fallthrough case CMDGetHeaders: p = &payload.GetBlocks{} if err := p.DecodeBinary(buf); err != nil {