aboutsummaryrefslogtreecommitdiffstats
path: root/consensus/ethash/sealer.go
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2017-11-24 22:10:27 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-24 22:10:27 +0800
commitf14047dae57aa69e4fa08d57e19ee9c0283dfa54 (patch)
treeb1b9523a4ce12e2b3cc472bdcf38df7ddbd4bdcc /consensus/ethash/sealer.go
parentb0056f5bd096adf42a2c28cd76264f230c7cae20 (diff)
downloadgo-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar
go-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.gz
go-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.bz2
go-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.lz
go-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.xz
go-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.zst
go-tangerine-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.zip
cmd, consensus, eth: split ethash related config to it own (#15520)
* cmd, consensus, eth: split ethash related config to it own * eth, consensus: minor polish * eth, consenus, console: compress pow testing config field to single one * consensus, eth: document pow mode
Diffstat (limited to 'consensus/ethash/sealer.go')
-rw-r--r--consensus/ethash/sealer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go
index 784e8f649..c2447e473 100644
--- a/consensus/ethash/sealer.go
+++ b/consensus/ethash/sealer.go
@@ -34,7 +34,7 @@ import (
// the block's difficulty requirements.
func (ethash *Ethash) Seal(chain consensus.ChainReader, block *types.Block, stop <-chan struct{}) (*types.Block, error) {
// If we're running a fake PoW, simply return a 0 nonce immediately
- if ethash.fakeMode {
+ if ethash.config.PowMode == ModeFake || ethash.config.PowMode == ModeFullFake {
header := block.Header()
header.Nonce, header.MixDigest = types.BlockNonce{}, common.Hash{}
return block.WithSeal(header), nil