diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-18 19:18:27 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-18 19:18:27 +0800 |
commit | e08aba5dd9f1e481aab18c6c062c97e0e400f75b (patch) | |
tree | 491d0f51f80d99d52cf5266d5d4c2f656f4155e7 /ptrie/trie.go | |
parent | 34f29d57b6790a38019a8bcef51a6e91d2945cbe (diff) | |
download | go-tangerine-e08aba5dd9f1e481aab18c6c062c97e0e400f75b.tar.gz go-tangerine-e08aba5dd9f1e481aab18c6c062c97e0e400f75b.tar.zst go-tangerine-e08aba5dd9f1e481aab18c6c062c97e0e400f75b.zip |
added output test
Diffstat (limited to 'ptrie/trie.go')
-rw-r--r-- | ptrie/trie.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ptrie/trie.go b/ptrie/trie.go index 3e642b334..207aad91e 100644 --- a/ptrie/trie.go +++ b/ptrie/trie.go @@ -45,6 +45,8 @@ func New(root []byte, backend Backend) *Trie { return trie } +// Legacy support +func (self *Trie) Root() []byte { return self.Hash() } func (self *Trie) Hash() []byte { var hash []byte if self.root != nil { |