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