added output test

This commit is contained in:
obscuren
2014-11-18 12:18:27 +01:00
parent 34f29d57b6
commit e08aba5dd9
3 changed files with 22 additions and 2 deletions

View File

@@ -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 {