aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-05-05 14:24:15 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-05-05 14:24:15 +0800
commitb1cc9cdc7424d452687e2e168027d591ed332f3f (patch)
tree85f9860c5348f7cce620349977e4dac5ab5140f8 /eth
parent50659f4b480fb9446cfb40955331a7a044353ff8 (diff)
downloadgo-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.tar
go-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.tar.gz
go-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.tar.bz2
go-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.tar.lz
go-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.tar.xz
go-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.tar.zst
go-tangerine-b1cc9cdc7424d452687e2e168027d591ed332f3f.zip
Integrate new ethash API and change geth makedag cmd
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index a8b0fae50..5acef2ded 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -220,7 +220,7 @@ func New(config *Config) (*Ethereum, error) {
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux())
eth.downloader = downloader.New(eth.chainManager.HasBlock, eth.chainManager.GetBlock)
- eth.pow = ethash.New(eth.chainManager)
+ eth.pow = ethash.New()
eth.txPool = core.NewTxPool(eth.EventMux(), eth.chainManager.State, eth.chainManager.GasLimit)
eth.blockProcessor = core.NewBlockProcessor(stateDb, extraDb, eth.pow, eth.txPool, eth.chainManager, eth.EventMux())
eth.chainManager.SetProcessor(eth.blockProcessor)
@@ -318,7 +318,6 @@ func (s *Ethereum) PeersInfo() (peersinfo []*PeerInfo) {
func (s *Ethereum) ResetWithGenesisBlock(gb *types.Block) {
s.chainManager.ResetWithGenesisBlock(gb)
- s.pow.UpdateCache(0, true)
}
func (s *Ethereum) StartMining() error {