diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-15 22:19:10 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-15 22:19:10 +0800 |
commit | 7d95e8624a3bdca4a68b2a7ff6ed133264088cc1 (patch) | |
tree | 2509b79c2b24015e339132eb80e28773df0b106e /ethchain/state_manager.go | |
parent | 2b9f71c6ca45929ccef844838c633aa0af5802be (diff) | |
download | dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.tar dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.tar.gz dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.tar.bz2 dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.tar.lz dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.tar.xz dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.tar.zst dexon-7d95e8624a3bdca4a68b2a7ff6ed133264088cc1.zip |
Added message to closure && added change addresses
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 1f47a2e0b..08bd22d29 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -373,11 +373,17 @@ func (sm *StateManager) Stop() { func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter { bloomf := NewBloomFilter(nil) - for addr, stateObject := range state.Manifest().ObjectChanges { - // Set the bloom filter's bin - bloomf.Set([]byte(addr)) + /* + for addr, stateObject := range state.Manifest().ObjectChanges { + // Set the bloom filter's bin + bloomf.Set([]byte(addr)) - sm.Ethereum.Reactor().Post("object:"+addr, stateObject) + sm.Ethereum.Reactor().Post("object:"+addr, stateObject) + } + */ + for _, msg := range state.Manifest().Messages { + bloomf.Set(msg.To) + bloomf.Set(msg.From) } sm.Ethereum.Reactor().Post("messages", state.Manifest().Messages) |