Skip to content

Commit

Permalink
Log minimum and specified gas price when filtering underpriced transa…
Browse files Browse the repository at this point in the history
…ctions (ethereum#305)

* Downgrade logging level in registered addresses

* Merge master
  • Loading branch information
asaj authored and mergify[bot] committed Jul 1, 2019
1 parent 9609a8b commit f8c997a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin
// Check for valid gas currency and that the tx exceeds the gasPriceMinimum
gasPriceMinimum, _ := w.eth.GasPriceMinimum().GetGasPriceMinimum(tx.GasCurrency(), w.current.state, w.current.header)
if tx.GasPrice().Cmp(gasPriceMinimum) == -1 {
log.Info("Excluding transaction from block due to failure to exceed gasPriceMinimum")
log.Info("Excluding transaction from block due to failure to exceed gasPriceMinimum", "gasPrice", tx.GasPrice(), "gasPriceMinimum", gasPriceMinimum)
break
}
// Error may be ignored here. The error has already been checked
Expand Down

0 comments on commit f8c997a

Please sign in to comment.