diff options
author | gary rong <garyrong0905@gmail.com> | 2017-11-24 22:10:27 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-24 22:10:27 +0800 |
commit | f14047dae57aa69e4fa08d57e19ee9c0283dfa54 (patch) | |
tree | b1b9523a4ce12e2b3cc472bdcf38df7ddbd4bdcc /console | |
parent | b0056f5bd096adf42a2c28cd76264f230c7cae20 (diff) | |
download | dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.gz dexon-f14047dae57aa69e4fa08d57e19ee9c0283dfa54.tar.zst dexon-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 'console')
-rw-r--r-- | console/console_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/console/console_test.go b/console/console_test.go index a159b62bb..d29680785 100644 --- a/console/console_test.go +++ b/console/console_test.go @@ -27,6 +27,7 @@ import ( "time" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/consensus/ethash" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/internal/jsre" @@ -96,7 +97,9 @@ func newTester(t *testing.T, confOverride func(*eth.Config)) *tester { ethConf := ð.Config{ Genesis: core.DeveloperGenesisBlock(15, common.Address{}), Etherbase: common.HexToAddress(testAddress), - PowTest: true, + Ethash: ethash.Config{ + PowMode: ethash.ModeTest, + }, } if confOverride != nil { confOverride(ethConf) |