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

pull/29263/head
Ng Wei Han 9 months ago committed by GitHub
parent 3c26ffeb29
commit 20d3e0ac06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      cmd/devp2p/enrcmd.go

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

Loading…
Cancel
Save