mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 01:23:45 +00:00
Use EthManager interface instead
This commit is contained in:
parent
cc341b8734
commit
cac9562c05
1 changed files with 6 additions and 4 deletions
|
|
@ -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 a new issue