mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-24 09:24:36 +00:00
Merge pull request #1080 from nspcc-dev/fix-verack
message: fix Verack processsing
This commit is contained in:
commit
da2d96d42f
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue