mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
p2p/discover: use rlp.DecodeBytes
This commit is contained in:
parent
2750ec47b7
commit
eedbb1ee9a
1 changed files with 1 additions and 1 deletions
|
|
@ -413,7 +413,7 @@ func decodePacket(buf []byte) (packet, NodeID, []byte, error) {
|
||||||
default:
|
default:
|
||||||
return nil, fromID, hash, fmt.Errorf("unknown type: %d", ptype)
|
return nil, fromID, hash, fmt.Errorf("unknown type: %d", ptype)
|
||||||
}
|
}
|
||||||
err = rlp.Decode(bytes.NewReader(sigdata[1:]), req)
|
err = rlp.DecodeBytes(sigdata[1:], req)
|
||||||
return req, fromID, hash, err
|
return req, fromID, hash, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue