diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-18 07:02:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-18 07:02:15 +0800 |
commit | f3a93b046e45a293b673a955959666ec5389c4eb (patch) | |
tree | d6333c86cbe89aaaa1df0cec346b4c969966f1fb /ethtrie/trie.go | |
parent | b3834d8272915d6b96d69a91ad6b9f994b29e891 (diff) | |
download | go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar.gz go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar.zst go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.zip |
Upped protocol version for VM change
Diffstat (limited to 'ethtrie/trie.go')
-rw-r--r-- | ethtrie/trie.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ethtrie/trie.go b/ethtrie/trie.go index 38ae0754d..e6e09dd0d 100644 --- a/ethtrie/trie.go +++ b/ethtrie/trie.go @@ -92,6 +92,13 @@ func (cache *Cache) Get(key []byte) *ethutil.Value { data, _ := cache.db.Get(key) // Create the cached value value := ethutil.NewValueFromBytes(data) + + defer func() { + if r := recover(); r != nil { + fmt.Println("RECOVER GET", cache, cache.nodes) + panic("bye") + } + }() // Create caching node cache.nodes[string(key)] = NewNode(key, value, false) |