Commit e7770b23 authored by obscuren's avatar obscuren

Added miner state

parent be543a6d
......@@ -21,7 +21,6 @@ type EthManager interface {
Broadcast(msgType ethwire.MsgType, data []interface{})
}
// TODO rename to state manager
type StateManager struct {
// Mutex for locking the block processor. Blocks can only be handled one at a time
mutex sync.Mutex
......@@ -50,6 +49,8 @@ type StateManager struct {
// Comparative state it used for comparing and validating end
// results
compState *State
miningState *State
}
func NewStateManager(ethereum EthManager) *StateManager {
......
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