aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-06 00:46:00 +0800
committerobscuren <geffobscura@gmail.com>2015-03-06 00:46:00 +0800
commit357d17ae58e6570278a3ed78a754a4ac1c346d74 (patch)
tree2a7bd70f0268c8641f463d67ff59c18f3bdf2cf8 /trie
parent1d1ba40965ad90748289526f1ada301fde018dcf (diff)
downloadgo-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.tar
go-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.tar.gz
go-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.tar.bz2
go-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.tar.lz
go-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.tar.xz
go-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.tar.zst
go-tangerine-357d17ae58e6570278a3ed78a754a4ac1c346d74.zip
Start at 0
Diffstat (limited to 'trie')
-rw-r--r--trie/trie_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/trie/trie_test.go b/trie/trie_test.go
index 4b185f355..21a1eb11f 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -267,14 +267,13 @@ func TestLargeData(t *testing.T) {
trie := NewEmpty()
vals := make(map[string]*kv)
- for i := byte(1); i < 255; i++ {
+ for i := byte(0); i < 255; i++ {
value := &kv{ethutil.LeftPadBytes([]byte{i}, 32), []byte{i}, false}
value2 := &kv{ethutil.LeftPadBytes([]byte{10, i}, 32), []byte{i}, false}
trie.Update(value.k, value.v)
trie.Update(value2.k, value2.v)
vals[string(value.k)] = value
vals[string(value2.k)] = value2
- fmt.Println(value, "\n", value2)
}
it := trie.Iterator()