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 {
|
||||
return err
|
||||
}
|
||||
case CMDInv:
|
||||
case CMDInv, CMDGetData:
|
||||
p = &payload.Inventory{}
|
||||
if err := p.DecodeBinary(buf); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue