aboutsummaryrefslogtreecommitdiffstats
path: root/dev_console.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-30 07:47:09 +0800
committerobscuren <geffobscura@gmail.com>2014-01-30 07:47:09 +0800
commit27a03d3eea5451ddb84dbb1ff33ee916259635d0 (patch)
tree3464e91b6ee6a6a4a661599a4d73c75f997fab63 /dev_console.go
parent6ab368cf7426195a0d44b14ad6d82c020c024395 (diff)
downloadgo-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.tar
go-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.tar.gz
go-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.tar.bz2
go-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.tar.lz
go-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.tar.xz
go-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.tar.zst
go-tangerine-27a03d3eea5451ddb84dbb1ff33ee916259635d0.zip
Updated to the new Trie
Diffstat (limited to 'dev_console.go')
-rw-r--r--dev_console.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev_console.go b/dev_console.go
index 74ba343cd..106c372f2 100644
--- a/dev_console.go
+++ b/dev_console.go
@@ -76,11 +76,11 @@ func (i *Console) ValidateInput(action string, argumentLength int) error {
}
func (i *Console) PrintRoot() {
- root := ethutil.Conv(i.trie.RootT)
+ root := ethutil.Conv(i.trie.Root)
if len(root.AsBytes()) != 0 {
fmt.Println(hex.EncodeToString(root.AsBytes()))
} else {
- fmt.Println(i.trie.RootT)
+ fmt.Println(i.trie.Root)
}
}
@@ -108,15 +108,15 @@ func (i *Console) ParseInput(input string) bool {
} else {
switch tokens[0] {
case "update":
- i.trie.UpdateT(tokens[1], tokens[2])
+ i.trie.Update(tokens[1], tokens[2])
i.PrintRoot()
case "get":
- fmt.Println(i.trie.GetT(tokens[1]))
+ fmt.Println(i.trie.Get(tokens[1]))
case "root":
i.PrintRoot()
case "rawroot":
- fmt.Println(i.trie.RootT)
+ fmt.Println(i.trie.Root)
case "print":
i.db.Print()
case "dag":