mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 02:11:34 +00:00
trie/bintrie: print todot path in binary (#34777)
The nodes were named using the byte representation of the path, instead of the binary representation. This was confusing to other client devs trying to achieve interop.
This commit is contained in:
parent
f568ab9931
commit
c374e74ee1
1 changed files with 2 additions and 2 deletions
|
|
@ -279,10 +279,10 @@ func (s *nodeStore) toDot(ref nodeRef, parent, path string) string {
|
|||
ret = fmt.Sprintf("%s %s -> %s\n", ret, parent, me)
|
||||
}
|
||||
if !node.left.IsEmpty() {
|
||||
ret += s.toDot(node.left, me, fmt.Sprintf("%s%02x", path, 0))
|
||||
ret += s.toDot(node.left, me, fmt.Sprintf("%s%b", path, 0))
|
||||
}
|
||||
if !node.right.IsEmpty() {
|
||||
ret += s.toDot(node.right, me, fmt.Sprintf("%s%02x", path, 1))
|
||||
ret += s.toDot(node.right, me, fmt.Sprintf("%s%b", path, 1))
|
||||
}
|
||||
return ret
|
||||
case kindStem:
|
||||
|
|
|
|||
Loading…
Reference in a new issue