aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-05 20:15:31 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-05 20:15:31 +0800
commitfde3e01f80420c367139a9fe647c618b0223842d (patch)
tree6afa997a20de1106edff6e8186180ff26fc8a8e1 /ethpub
parentc496aad20bebdeea240ee4b6cc8730d484240ca8 (diff)
downloadgo-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.tar
go-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.tar.gz
go-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.tar.bz2
go-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.tar.lz
go-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.tar.xz
go-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.tar.zst
go-tangerine-fde3e01f80420c367139a9fe647c618b0223842d.zip
Fixed import cycle
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/pub.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index 3c579001e..5dc08160f 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -1,7 +1,6 @@
package ethpub
import (
- "github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethutil"
)
@@ -12,11 +11,11 @@ type PEthereum struct {
txPool *ethchain.TxPool
}
-func NewPEthereum(eth *eth.Ethereum) *PEthereum {
+func NewPEthereum(sm *ethchain.StateManager, bc *ethchain.BlockChain, txp *ethchain.TxPool) *PEthereum {
return &PEthereum{
- eth.StateManager(),
- eth.BlockChain(),
- eth.TxPool(),
+ sm,
+ bc,
+ txp,
}
}