Skip to content

Commit

Permalink
cmd/devp2p: fix decoding of raw RLP ENR attributes (ethereum#29257)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann authored and jorgemmsilva committed Jun 17, 2024
1 parent f3b5f74 commit e4d4ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/devp2p/enrcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e4d4ab1

Please sign in to comment.