Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openethereum/parity-ethereum
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 50be07adc9fb5afd11c8b66a27f1724da6d31825
Choose a base ref
..
head repository: openethereum/parity-ethereum
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6853af68d6c9373d9b1e368bfb3f7e2607a45ed0
Choose a head ref
Showing with 2 additions and 11 deletions.
  1. +2 −11 miner/src/pool/scoring.rs
13 changes: 2 additions & 11 deletions miner/src/pool/scoring.rs
Original file line number Diff line number Diff line change
@@ -132,20 +132,11 @@ mod tests {
fn should_replace_non_local_transaction_with_local_one() {
// given
let scoring = NonceAndGasPrice(PrioritizationStrategy::GasPriceOnly);
let tx1 = {
let tx = Tx::default().signed().verified();
txpool::Transaction {
insertion_id: 0,
transaction: Arc::new(tx),
}
};
let tx1 = Tx::default().signed().verified();
let tx2 = {
let mut tx = Tx::default().signed().verified();
tx.priority = ::pool::Priority::Local;
txpool::Transaction {
insertion_id: 0,
transaction: Arc::new(tx),
}
tx
};

assert!(scoring.should_replace(&tx1, &tx2));