Commit cac9562c authored by obscuren's avatar obscuren

Use EthManager interface instead

parent cc341b87
......@@ -6,16 +6,18 @@ import (
)
type PEthereum struct {
manager ethchain.EthManager
stateManager *ethchain.StateManager
blockChain *ethchain.BlockChain
txPool *ethchain.TxPool
}
func NewPEthereum(sm *ethchain.StateManager, bc *ethchain.BlockChain, txp *ethchain.TxPool) *PEthereum {
func NewPEthereum(manager ethchain.EthManager) *PEthereum {
return &PEthereum{
sm,
bc,
txp,
manager,
manager.StateManager(),
manager.BlockChain(),
manager.TxPool(),
}
}
......
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