miner, tests: fixed block test
This commit is contained in:
parent
e3a08875f6
commit
7eed47fad5
@ -38,6 +38,11 @@ func (self *Miner) Mining() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *Miner) SetGasPrice(price *big.Int) {
|
func (m *Miner) SetGasPrice(price *big.Int) {
|
||||||
|
// FIXME block tests set a nil gas price. Quick dirty fix
|
||||||
|
if price == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
m.worker.gasPrice = price
|
m.worker.gasPrice = price
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ func testEthConfig() *eth.Config {
|
|||||||
|
|
||||||
return ð.Config{
|
return ð.Config{
|
||||||
DataDir: common.DefaultDataDir(),
|
DataDir: common.DefaultDataDir(),
|
||||||
LogLevel: 5,
|
Verbosity: 5,
|
||||||
Etherbase: "primary",
|
Etherbase: "primary",
|
||||||
AccountManager: accounts.NewManager(ks),
|
AccountManager: accounts.NewManager(ks),
|
||||||
NewDB: func(path string) (common.Database, error) { return ethdb.NewMemDatabase() },
|
NewDB: func(path string) (common.Database, error) { return ethdb.NewMemDatabase() },
|
||||||
|
Loading…
Reference in New Issue
Block a user