From 892812d539a720d03f0a97ecffd4f7a225f8e13c Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sat, 20 Jun 2020 00:28:51 +0300 Subject: [PATCH] message: fix Verack processsing Recent 9f42108ef completely broke handshaking. --- pkg/network/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/network/message.go b/pkg/network/message.go index 12674698a..a7ec61c9e 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -107,7 +107,7 @@ func (m *Message) Decode(br *io.BinReader) error { // for an empty compressed payload if l == 0 { switch m.Command { - case CMDFilterClear, CMDGetAddr, CMDMempool: + case CMDFilterClear, CMDGetAddr, CMDMempool, CMDVerack: m.Payload = payload.NewNullPayload() default: return errors.New("unexpected empty payload")