aboutsummaryrefslogtreecommitdiffstats
path: root/ethtrie/trie.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-18 07:02:15 +0800
committerobscuren <geffobscura@gmail.com>2014-09-18 07:02:15 +0800
commitf3a93b046e45a293b673a955959666ec5389c4eb (patch)
treed6333c86cbe89aaaa1df0cec346b4c969966f1fb /ethtrie/trie.go
parentb3834d8272915d6b96d69a91ad6b9f994b29e891 (diff)
downloadgo-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar
go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar.gz
go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar.bz2
go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar.lz
go-tangerine-f3a93b046e45a293b673a955959666ec5389c4eb.tar.xz
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.go7
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)