aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub/pub.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpub/pub.go')
-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,
}
}