aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-15 06:25:16 +0800
committerobscuren <geffobscura@gmail.com>2014-08-15 06:25:16 +0800
commitc7ee9844bd6f8ed2bb466f8adf21f437ecc83564 (patch)
tree041ff6019d4515460e0e696d8b598081cf17a0c6
parent0fcc6065692f2692072cdf0d61fe1ada547fc235 (diff)
downloadgo-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.tar
go-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.tar.gz
go-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.tar.bz2
go-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.tar.lz
go-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.tar.xz
go-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.tar.zst
go-tangerine-c7ee9844bd6f8ed2bb466f8adf21f437ecc83564.zip
Removed old code
-rw-r--r--ethchain/state_manager.go16
-rw-r--r--ethstate/manifest.go3
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, &ethstate.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, &ethstate.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