network: decode CMDGetData the same way as CMDInv

As they're the same wrt the payload.
This commit is contained in:
Roman Khimov 2019-08-30 13:14:12 +03:00
parent db39149b3d
commit e72a8bbecd

View file

@ -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