cmd/devp2p: fix decoding of raw RLP ENR attributes (#29257)

This commit is contained in:
Ng Wei Han 2024-03-14 17:32:49 +08:00 committed by GitHub
parent 3c26ffeb29
commit 20d3e0ac06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ var attrFormatters = map[string]func(rlp.RawValue) (string, bool){
}
func formatAttrRaw(v rlp.RawValue) (string, bool) {
s := hex.EncodeToString(v)
return s, true
content, _, err := rlp.SplitString(v)
return hex.EncodeToString(content), err == nil
}
func formatAttrString(v rlp.RawValue) (string, bool) {