Skip to content

Commit 7eed47f

Browse files
committed
miner, tests: fixed block test
1 parent e3a0887 commit 7eed47f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

miner/miner.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ func (self *Miner) Mining() bool {
3838
}
3939

4040
func (m *Miner) SetGasPrice(price *big.Int) {
41+
// FIXME block tests set a nil gas price. Quick dirty fix
42+
if price == nil {
43+
return
44+
}
45+
4146
m.worker.gasPrice = price
4247
}
4348

tests/block_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func testEthConfig() *eth.Config {
103103

104104
return &eth.Config{
105105
DataDir: common.DefaultDataDir(),
106-
LogLevel: 5,
106+
Verbosity: 5,
107107
Etherbase: "primary",
108108
AccountManager: accounts.NewManager(ks),
109109
NewDB: func(path string) (common.Database, error) { return ethdb.NewMemDatabase() },

0 commit comments

Comments
 (0)