Explorar o código

miner, tests: fixed block test

obscuren %!s(int64=10) %!d(string=hai) anos
pai
achega
7eed47fad5
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 5 0
      miner/miner.go
  2. 1 1
      tests/block_test.go

+ 5 - 0
miner/miner.go

@@ -38,6 +38,11 @@ func (self *Miner) Mining() bool {
 }
 
 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
 }
 

+ 1 - 1
tests/block_test.go

@@ -103,7 +103,7 @@ func testEthConfig() *eth.Config {
 
 	return &eth.Config{
 		DataDir:        common.DefaultDataDir(),
-		LogLevel:       5,
+		Verbosity:      5,
 		Etherbase:      "primary",
 		AccountManager: accounts.NewManager(ks),
 		NewDB:          func(path string) (common.Database, error) { return ethdb.NewMemDatabase() },