[−][src]Trait transaction_pool::ShouldReplace
Chooses whether a new transaction should replace an existing transaction if the pool is full.
Required methods
fn should_replace(
&self,
old: &ReplaceTransaction<T>,
new: &ReplaceTransaction<T>
) -> Choice
&self,
old: &ReplaceTransaction<T>,
new: &ReplaceTransaction<T>
) -> Choice
Decides if new
should push out old
transaction from the pool.
NOTE returning InsertNew
here can lead to some transactions being accepted above pool limits.