From c7ee9844bd6f8ed2bb466f8adf21f437ecc83564 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 15 Aug 2014 00:25:16 +0200 Subject: Removed old code --- ethchain/state_manager.go | 16 ++++++++++------ ethstate/manifest.go | 3 ++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index d7860b2a2..1f47a2e0b 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -380,14 +380,18 @@ func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter { sm.Ethereum.Reactor().Post("object:"+addr, stateObject) } - for stateObjectAddr, mappedObjects := range state.Manifest().StorageChanges { - for addr, value := range mappedObjects { - // Set the bloom filter's bin - bloomf.Set(ethcrypto.Sha3Bin([]byte(stateObjectAddr + addr))) + sm.Ethereum.Reactor().Post("messages", state.Manifest().Messages) - sm.Ethereum.Reactor().Post("storage:"+stateObjectAddr+":"+addr, ðstate.StorageState{[]byte(stateObjectAddr), []byte(addr), value}) + /* + for stateObjectAddr, mappedObjects := range state.Manifest().StorageChanges { + for addr, value := range mappedObjects { + // Set the bloom filter's bin + bloomf.Set(ethcrypto.Sha3Bin([]byte(stateObjectAddr + addr))) + + sm.Ethereum.Reactor().Post("storage:"+stateObjectAddr+":"+addr, ðstate.StorageState{[]byte(stateObjectAddr), []byte(addr), value}) + } } - } + */ return bloomf } diff --git a/ethstate/manifest.go b/ethstate/manifest.go index b771127a6..88ce673b9 100644 --- a/ethstate/manifest.go +++ b/ethstate/manifest.go @@ -17,7 +17,7 @@ type Manifest struct { ObjectChanges map[string]*StateObject StorageChanges map[string]map[string]*big.Int - Messages []*Message + Messages Messages } func NewManifest() *Manifest { @@ -50,6 +50,7 @@ func (self *Manifest) AddMessage(msg *Message) *Message { return msg } +type Messages []*Message type Message struct { To, From []byte Input []byte -- cgit v1.2.3