diff options
author | gary rong <garyrong0905@gmail.com> | 2019-04-23 15:08:51 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-04-23 15:08:51 +0800 |
commit | 6269e5574c024bb82617b33f673550231b3a3b37 (patch) | |
tree | 2cacec84e759833f3e3e77174e65d1ca7b584e75 /console | |
parent | d9403690ecaf1beecc4369c56c4600caf275dae8 (diff) | |
download | go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.tar go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.tar.gz go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.tar.bz2 go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.tar.lz go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.tar.xz go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.tar.zst go-tangerine-6269e5574c024bb82617b33f673550231b3a3b37.zip |
miner: polish miner configuration (#19480)
* cmd, eth, miner: disable advance sealing if user require
* cmd, console, miner, les, eth: wrap the miner config
* eth: remove todo
* cmd, miner: revert noadvance flag
The reason for this is: if the transaction execution is even longer
than block time, then this kind of transactions is DoS attack.
Diffstat (limited to 'console')
-rw-r--r-- | console/console_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/console/console_test.go b/console/console_test.go index 55d799725..89dd7cd83 100644 --- a/console/console_test.go +++ b/console/console_test.go @@ -31,6 +31,7 @@ import ( "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/internal/jsre" + "github.com/ethereum/go-ethereum/miner" "github.com/ethereum/go-ethereum/node" ) @@ -96,8 +97,10 @@ func newTester(t *testing.T, confOverride func(*eth.Config)) *tester { t.Fatalf("failed to create node: %v", err) } ethConf := ð.Config{ - Genesis: core.DeveloperGenesisBlock(15, common.Address{}), - Etherbase: common.HexToAddress(testAddress), + Genesis: core.DeveloperGenesisBlock(15, common.Address{}), + Miner: miner.Config{ + Etherbase: common.HexToAddress(testAddress), + }, Ethash: ethash.Config{ PowMode: ethash.ModeTest, }, |