diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index dd0dd3cbe..47cad825d 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -396,8 +396,9 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { self.mu.Unlock() if chain { - //self.setTransState(state.New(block.Root(), self.db)) - //self.eventMux.Post(ChainEvent{block, td}) + fmt.Println("POST START") + self.eventMux.Post(ChainEvent{block, td}) + fmt.Println("POST END") } if split { @@ -413,7 +414,3 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { func (self *ChainManager) GetAccount(addr []byte) *state.StateObject { return self.State().GetAccount(addr) } - -func (self *ChainManager) TransMut() *sync.RWMutex { - return &self.tsmu -} |