aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-16 02:36:04 +0800
committerobscuren <geffobscura@gmail.com>2014-07-16 02:36:04 +0800
commit7c0a27a0f4d750c1977777fc7803592f4208f70e (patch)
treeeaf8b3089249ed4e06eda343cc46b07860fe14d1 /ethpub
parent7a410643ac5dc7cc297cbdb094539761230440d0 (diff)
downloadgo-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar
go-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.gz
go-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.bz2
go-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.lz
go-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.xz
go-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.tar.zst
go-tangerine-7c0a27a0f4d750c1977777fc7803592f4208f70e.zip
Added each callback for storage
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/types.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethpub/types.go b/ethpub/types.go
index 5d41269c8..bd1afc007 100644
--- a/ethpub/types.go
+++ b/ethpub/types.go
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethcrypto"
+ "github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"strings"
)
@@ -212,6 +213,10 @@ func (c *PStateObject) IsContract() bool {
return false
}
+func (self *PStateObject) EachStorage(cb ethtrie.EachCallback) {
+ self.object.State().EachStorage(cb)
+}
+
type KeyVal struct {
Key string
Value string