diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:25 +0800 |
commit | 7c91159449c528daa099aec5a3744aa8a6b5a826 (patch) | |
tree | e25dc33bdd0d833aceb99fea06c93181a0e59c57 /ethchain | |
parent | 1f6df0cd522842095c5ca723d2e11fc6b97b8b6a (diff) | |
download | go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.gz go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.zst go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.zip |
Added different storage notification object
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_manager.go | 2 | ||||
-rw-r--r-- | ethchain/state_object.go | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 02d0345d7..501ec102b 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -350,7 +350,7 @@ func (sm *StateManager) notifyChanges() { for stateObjectAddr, mappedObjects := range sm.manifest.storageChanges { for addr, value := range mappedObjects { - sm.Ethereum.Reactor().Post("storage:"+stateObjectAddr+":"+addr, value.String()) + sm.Ethereum.Reactor().Post("storage:"+stateObjectAddr+":"+addr, &StorageState{[]byte(stateObjectAddr), []byte(addr), value}) } } } diff --git a/ethchain/state_object.go b/ethchain/state_object.go index 4ec91d2e0..617646077 100644 --- a/ethchain/state_object.go +++ b/ethchain/state_object.go @@ -186,3 +186,9 @@ type CachedStateObject struct { Nonce uint64 Object *StateObject } + +type StorageState struct { + StateAddress []byte + Address []byte + Value *big.Int +} |