diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-21 07:12:39 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-21 07:12:39 +0800 |
commit | 734b2e4cf7a2e6ed3ab0815b795730c62e235a6b (patch) | |
tree | b86a624e21eedc4eceb695a88a1ff3bb81e17848 /ethutil | |
parent | 5ceb1620e93e1999c6f72e6164c7c65af63244ec (diff) | |
parent | 3c35ba7c31423da644c5fb73030af4673cff90ec (diff) | |
download | dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.gz dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.bz2 dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.lz dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.xz dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.tar.zst dexon-734b2e4cf7a2e6ed3ab0815b795730c62e235a6b.zip |
Merge branch 'hotfix/4' into develop
Diffstat (limited to 'ethutil')
-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) |