diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-13 18:42:24 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-13 18:42:24 +0800 |
commit | cac9562c059a94902dc420fea697026a682014bc (patch) | |
tree | bcd75e79ca4ce7dc8e480549073979eba77dce44 | |
parent | cc341b8734cf2c424b9b4adf7861400992755d7a (diff) | |
download | go-tangerine-cac9562c059a94902dc420fea697026a682014bc.tar go-tangerine-cac9562c059a94902dc420fea697026a682014bc.tar.gz go-tangerine-cac9562c059a94902dc420fea697026a682014bc.tar.bz2 go-tangerine-cac9562c059a94902dc420fea697026a682014bc.tar.lz go-tangerine-cac9562c059a94902dc420fea697026a682014bc.tar.xz go-tangerine-cac9562c059a94902dc420fea697026a682014bc.tar.zst go-tangerine-cac9562c059a94902dc420fea697026a682014bc.zip |
Use EthManager interface instead
-rw-r--r-- | ethpub/pub.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go index f7e641b35..4ced632f5 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -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(), } } |