mirror of https://github.com/status-im/op-geth.git
Removed old code
This commit is contained in:
parent
0fcc606569
commit
c7ee9844bd
|
@ -380,14 +380,18 @@ func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter {
|
||||||
sm.Ethereum.Reactor().Post("object:"+addr, stateObject)
|
sm.Ethereum.Reactor().Post("object:"+addr, stateObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
for stateObjectAddr, mappedObjects := range state.Manifest().StorageChanges {
|
sm.Ethereum.Reactor().Post("messages", state.Manifest().Messages)
|
||||||
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})
|
/*
|
||||||
|
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
|
return bloomf
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ type Manifest struct {
|
||||||
ObjectChanges map[string]*StateObject
|
ObjectChanges map[string]*StateObject
|
||||||
StorageChanges map[string]map[string]*big.Int
|
StorageChanges map[string]map[string]*big.Int
|
||||||
|
|
||||||
Messages []*Message
|
Messages Messages
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewManifest() *Manifest {
|
func NewManifest() *Manifest {
|
||||||
|
@ -50,6 +50,7 @@ func (self *Manifest) AddMessage(msg *Message) *Message {
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Messages []*Message
|
||||||
type Message struct {
|
type Message struct {
|
||||||
To, From []byte
|
To, From []byte
|
||||||
Input []byte
|
Input []byte
|
||||||
|
|
Loading…
Reference in New Issue