mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
trie/bintrie: print todot path in binary
This commit is contained in:
parent
ac406c2fe7
commit
06f7606492
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