diff options
Diffstat (limited to 'ethutil/trie.go')
-rw-r--r-- | ethutil/trie.go | 4 |
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) |