Module ethcore_miner::pool::scoring
source · [−]Expand description
Transaction Scoring and Ordering
Ethereum transactions from the same sender are ordered by nonce
.
Low nonces need to be included first. If there are two transactions from the same sender
and with the same nonce
only one of them can be included.
We choose the one with higher gas price, but also require that gas price increment
is high enough to prevent attacking miners by requiring them to reshuffle/reexecute
the queue too often.
Transactions between senders are prioritized using gas price
. Higher gas price
yields more profits for miners. Additionally we prioritize transactions that originate
from our local node (own transactions).
Structs
Simple, gas-price based scoring for transactions.
Enums
List of events that trigger updating of scores