diff options
author | Ethan Buchman <ethan@coinculture.info> | 2015-08-06 15:11:10 +0800 |
---|---|---|
committer | Ethan Buchman <ethan@coinculture.info> | 2015-08-06 15:17:59 +0800 |
commit | c1d516546d221de898ddeb12a77477d992d125df (patch) | |
tree | 9f2208127d4325546ac524b9e56ae8cd525abb92 /trie/iterator.go | |
parent | 98100f472c3bee473ea32044e47e82835b9cfadb (diff) | |
download | dexon-c1d516546d221de898ddeb12a77477d992d125df.tar.gz dexon-c1d516546d221de898ddeb12a77477d992d125df.tar.zst dexon-c1d516546d221de898ddeb12a77477d992d125df.zip |
faster hex-prefix codec and string -> []byte
Diffstat (limited to 'trie/iterator.go')
-rw-r--r-- | trie/iterator.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/iterator.go b/trie/iterator.go index 698e64b34..9c4c7fbe5 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -41,7 +41,7 @@ func (self *Iterator) Next() bool { self.Key = make([]byte, 32) } - key := RemTerm(CompactHexDecode(string(self.Key))) + key := RemTerm(CompactHexDecode(self.Key)) k := self.next(self.trie.root, key, isIterStart) self.Key = []byte(DecodeCompact(k)) |