Skip to content

Commit

Permalink
miner: remove dead code, add gas price getter
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Nov 24, 2016
1 parent c04c8f1 commit 94c0519
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ type Miner struct {

worker *worker

MinAcceptedGasPrice *big.Int

threads int
coinbase common.Address
mining int32
Expand Down Expand Up @@ -107,12 +105,15 @@ out:
}
}

func (m *Miner) GasPrice() *big.Int {
return new(big.Int).Set(m.worker.gasPrice)
}

func (m *Miner) SetGasPrice(price *big.Int) {
// FIXME block tests set a nil gas price. Quick dirty fix
if price == nil {
return
}

m.worker.setGasPrice(price)
}

Expand Down

0 comments on commit 94c0519

Please sign in to comment.