aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-13 18:42:24 +0800
committerobscuren <geffobscura@gmail.com>2014-05-13 18:42:24 +0800
commitcac9562c059a94902dc420fea697026a682014bc (patch)
treebcd75e79ca4ce7dc8e480549073979eba77dce44
parentcc341b8734cf2c424b9b4adf7861400992755d7a (diff)
downloadgo-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.go10
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(),
}
}