Added different storage notification object

This commit is contained in:
obscuren
2014-05-05 11:56:25 +02:00
parent 1f6df0cd52
commit 7c91159449
4 changed files with 45 additions and 11 deletions
+1 -1
View File
@@ -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})
}
}
}
+6
View File
@@ -186,3 +186,9 @@ type CachedStateObject struct {
Nonce uint64
Object *StateObject
}
type StorageState struct {
StateAddress []byte
Address []byte
Value *big.Int
}