Use EthManager interface instead
This commit is contained in:
parent
cc341b8734
commit
cac9562c05
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user