forked from TrueCloudLab/neoneo-go
network: decode CMDGetData the same way as CMDInv
As they're the same wrt the payload.
This commit is contained in:
parent
db39149b3d
commit
e72a8bbecd
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ func (m *Message) decodePayload(r io.Reader) error {
|
||||||
if err := p.DecodeBinary(buf); err != nil {
|
if err := p.DecodeBinary(buf); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case CMDInv:
|
case CMDInv, CMDGetData:
|
||||||
p = &payload.Inventory{}
|
p = &payload.Inventory{}
|
||||||
if err := p.DecodeBinary(buf); err != nil {
|
if err := p.DecodeBinary(buf); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue