Commit c7ee9844 authored by obscuren's avatar obscuren

Removed old code

parent 0fcc6065
...@@ -380,6 +380,9 @@ func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter { ...@@ -380,6 +380,9 @@ func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter {
sm.Ethereum.Reactor().Post("object:"+addr, stateObject) sm.Ethereum.Reactor().Post("object:"+addr, stateObject)
} }
sm.Ethereum.Reactor().Post("messages", state.Manifest().Messages)
/*
for stateObjectAddr, mappedObjects := range state.Manifest().StorageChanges { for stateObjectAddr, mappedObjects := range state.Manifest().StorageChanges {
for addr, value := range mappedObjects { for addr, value := range mappedObjects {
// Set the bloom filter's bin // Set the bloom filter's bin
...@@ -388,6 +391,7 @@ func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter { ...@@ -388,6 +391,7 @@ func (sm *StateManager) createBloomFilter(state *ethstate.State) *BloomFilter {
sm.Ethereum.Reactor().Post("storage:"+stateObjectAddr+":"+addr, &ethstate.StorageState{[]byte(stateObjectAddr), []byte(addr), value}) sm.Ethereum.Reactor().Post("storage:"+stateObjectAddr+":"+addr, &ethstate.StorageState{[]byte(stateObjectAddr), []byte(addr), value})
} }
} }
*/
return bloomf return bloomf
} }
......
...@@ -17,7 +17,7 @@ type Manifest struct { ...@@ -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 { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment