diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-10 23:45:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-10 23:45:16 +0800 |
commit | 1b98cbbfa4f587107fa15fccde7d22102ea4b1c0 (patch) | |
tree | 367be45e14b7d1a1ff3a62e0fdb949156e9cc71d /miner/miner.go | |
parent | 4082c8b61d1e9cc57d9da9b9da5c36ff84895d74 (diff) | |
download | go-tangerine-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.gz go-tangerine-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.zst go-tangerine-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.zip |
Moved pow
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/miner/miner.go b/miner/miner.go index 4f677cbef..82a92cc20 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -29,6 +29,8 @@ import ( "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/ethutil" + "github.com/ethereum/go-ethereum/pow" + "github.com/ethereum/go-ethereum/pow/ezp" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" @@ -59,7 +61,7 @@ type Miner struct { localTxs map[int]*LocalTx localTxId int - pow core.PoW + pow pow.PoW quitCh chan struct{} powQuitCh chan struct{} @@ -74,7 +76,7 @@ func New(coinbase []byte, eth *eth.Ethereum) *Miner { return &Miner{ eth: eth, powQuitCh: make(chan struct{}), - pow: &core.EasyPow{}, + pow: ezp.New(), mining: false, localTxs: make(map[int]*LocalTx), MinAcceptedGasPrice: big.NewInt(10000000000000), @@ -82,7 +84,7 @@ func New(coinbase []byte, eth *eth.Ethereum) *Miner { } } -func (self *Miner) GetPow() core.PoW { +func (self *Miner) GetPow() pow.PoW { return self.pow } |