aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/trie.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-21 07:12:39 +0800
committerobscuren <geffobscura@gmail.com>2014-05-21 07:12:39 +0800
commit734b2e4cf7a2e6ed3ab0815b795730c62e235a6b (patch)
treeb86a624e21eedc4eceb695a88a1ff3bb81e17848 /ethutil/trie.go
parent5ceb1620e93e1999c6f72e6164c7c65af63244ec (diff)
parent3c35ba7c31423da644c5fb73030af4673cff90ec (diff)
downloadgo-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar
go-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.gz
go-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.bz2
go-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.lz
go-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.xz
go-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.zst
go-tangerine-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.zip
Merge branch 'hotfix/4' into develop
Diffstat (limited to 'ethutil/trie.go')
-rw-r--r--ethutil/trie.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethutil/trie.go b/ethutil/trie.go
index 1c7bd478d..c993e4d8f 100644
--- a/ethutil/trie.go
+++ b/ethutil/trie.go
@@ -6,6 +6,10 @@ import (
"sync"
)
+func (s *Cache) Len() int {
+ return len(s.nodes)
+}
+
// TODO
// A StateObject is an object that has a state root
// This is goig to be the object for the second level caching (the caching of object which have a state such as contracts)