aboutsummaryrefslogtreecommitdiffstats
path: root/trie_test.go
diff options
context:
space:
mode:
authorobscuren <obscuren@obscura.com>2014-01-03 06:02:24 +0800
committerobscuren <obscuren@obscura.com>2014-01-03 06:02:24 +0800
commit9df4c745119b3ed10a7ad17887e8dd9cac249af7 (patch)
tree8ae82afaf78a225d685a146a4cc67a77d3ca773d /trie_test.go
parent5b3d4fae6e03e5471a10c653fc0b016cc5e5dcfa (diff)
downloadgo-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.gz
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.tar.zst
go-tangerine-9df4c745119b3ed10a7ad17887e8dd9cac249af7.zip
WIP rewrite vm
Diffstat (limited to 'trie_test.go')
-rw-r--r--trie_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/trie_test.go b/trie_test.go
index 6dbe040ee..599a5f47c 100644
--- a/trie_test.go
+++ b/trie_test.go
@@ -3,6 +3,7 @@ package main
import (
"testing"
"encoding/hex"
+ _"fmt"
)
func TestTriePut(t *testing.T) {
@@ -41,6 +42,13 @@ func TestTrieUpdate(t *testing.T) {
trie.Update("doe", "reindeer")
trie.Update("dog", "puppy")
+ /*
+ data, _ := db.Get([]byte(trie.root))
+ data, _ = db.Get([]byte(DecodeNode(data)[1]))
+ data, _ = db.Get([]byte(DecodeNode(data)[7]))
+ PrintSlice(DecodeNode(data))
+ */
+
trie.Update("dogglesworth", "cat")
root := hex.EncodeToString([]byte(trie.root))
req := "e378927bfc1bd4f01a2e8d9f59bd18db8a208bb493ac0b00f93ce51d4d2af76c"