Evict transaction from transaction pool (#2797)

* Evict transaction from transaction pool

* Remove Result from evict function
This commit is contained in:
Quentin Le Sceller
2019-05-13 18:03:47 -04:00
committed by Ignotus Peverell
parent 15b56a97f5
commit 59db5e3bd1
3 changed files with 40 additions and 8 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ impl Pool {
/// containing the tx it depends on.
/// Sorting the buckets by fee_to_weight will therefore preserve dependency ordering,
/// maximizing both cut-through and overall fees.
fn bucket_transactions(&self, weighting: Weighting) -> Vec<Transaction> {
pub fn bucket_transactions(&self, weighting: Weighting) -> Vec<Transaction> {
let mut tx_buckets: Vec<Bucket> = Vec::new();
let mut output_commits = HashMap::new();
let mut rejected = HashSet::new();