forked from TrueCloudLab/neoneo-go
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
|
// for an empty compressed payload
|
||||||
if l == 0 {
|
if l == 0 {
|
||||||
switch m.Command {
|
switch m.Command {
|
||||||
case CMDFilterClear, CMDGetAddr, CMDMempool:
|
case CMDFilterClear, CMDGetAddr, CMDMempool, CMDVerack:
|
||||||
m.Payload = payload.NewNullPayload()
|
m.Payload = payload.NewNullPayload()
|
||||||
default:
|
default:
|
||||||
return errors.New("unexpected empty payload")
|
return errors.New("unexpected empty payload")
|
||||||
|
|
Loading…
Reference in a new issue