aboutsummaryrefslogtreecommitdiffstats
path: root/console/console_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'console/console_test.go')
-rw-r--r--console/console_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/console/console_test.go b/console/console_test.go
index a159b62bb..05aec2cc0 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"
@@ -67,6 +68,7 @@ func (p *hookedPrompter) PromptConfirm(prompt string) (bool, error) {
}
func (p *hookedPrompter) SetHistory(history []string) {}
func (p *hookedPrompter) AppendHistory(command string) {}
+func (p *hookedPrompter) ClearHistory() {}
func (p *hookedPrompter) SetWordCompleter(completer WordCompleter) {}
// tester is a console test environment for the console tests to operate on.
@@ -96,7 +98,9 @@ func newTester(t *testing.T, confOverride func(*eth.Config)) *tester {
ethConf := &eth.Config{
Genesis: core.DeveloperGenesisBlock(15, common.Address{}),
Etherbase: common.HexToAddress(testAddress),
- PowTest: true,
+ Ethash: ethash.Config{
+ PowMode: ethash.ModeTest,
+ },
}
if confOverride != nil {
confOverride(ethConf)