diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-24 21:47:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-24 21:47:50 +0800 |
commit | 58d477f7a676563c5237df9c0cfd20ddba5df03c (patch) | |
tree | d0ebd9ed08dd75e9613837732a950ac991bd1131 /ptrie/node.go | |
parent | 804af9658a89555d6b4069433676acdb6deb9742 (diff) | |
download | dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.tar dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.tar.gz dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.tar.bz2 dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.tar.lz dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.tar.xz dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.tar.zst dexon-58d477f7a676563c5237df9c0cfd20ddba5df03c.zip |
Fixed a bug where keys where serialised twice
Diffstat (limited to 'ptrie/node.go')
-rw-r--r-- | ptrie/node.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ptrie/node.go b/ptrie/node.go index 2c85dbce7..ab90a1a02 100644 --- a/ptrie/node.go +++ b/ptrie/node.go @@ -17,7 +17,7 @@ type Node interface { func (self *ValueNode) String() string { return self.fstring("") } func (self *FullNode) String() string { return self.fstring("") } func (self *ShortNode) String() string { return self.fstring("") } -func (self *ValueNode) fstring(ind string) string { return fmt.Sprintf("%s ", self.data) } +func (self *ValueNode) fstring(ind string) string { return fmt.Sprintf("%x ", self.data) } func (self *HashNode) fstring(ind string) string { return fmt.Sprintf("%x ", self.key) } // Full node @@ -36,5 +36,5 @@ func (self *FullNode) fstring(ind string) string { // Short node func (self *ShortNode) fstring(ind string) string { - return fmt.Sprintf("[ %s: %v ] ", self.key, self.value.fstring(ind+" ")) + return fmt.Sprintf("[ %x: %v ] ", self.key, self.value.fstring(ind+" ")) } |