Commit cac9562c authored by obscuren's avatar obscuren

Use EthManager interface instead

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