mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
cmd/devp2p: fix decoding of raw RLP ENR attributes (#29257)
This commit is contained in:
parent
3c26ffeb29
commit
20d3e0ac06
1 changed files with 2 additions and 2 deletions
|
|
@ -183,8 +183,8 @@ var attrFormatters = map[string]func(rlp.RawValue) (string, bool){
|
||||||
}
|
}
|
||||||
|
|
||||||
func formatAttrRaw(v rlp.RawValue) (string, bool) {
|
func formatAttrRaw(v rlp.RawValue) (string, bool) {
|
||||||
s := hex.EncodeToString(v)
|
content, _, err := rlp.SplitString(v)
|
||||||
return s, true
|
return hex.EncodeToString(content), err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func formatAttrString(v rlp.RawValue) (string, bool) {
|
func formatAttrString(v rlp.RawValue) (string, bool) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue