Consolidate and cleanup tx aggregation (#1332)

* Include commitments non-duplicate checks in aggregate
* Remove said check from the pool
* Block building now uses tx aggregation to reduce duplication
This commit is contained in:
Ignotus Peverell
2018-08-12 19:08:08 -07:00
committed by GitHub
parent 4be97abbbb
commit e9c987c075
12 changed files with 149 additions and 191 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ where
stem_txs.len()
);
let agg_tx = transaction::aggregate(stem_txs)?;
let agg_tx = transaction::aggregate(stem_txs, None)?;
let res = tx_pool.adapter.stem_tx_accepted(&agg_tx);
if res.is_err() {
@@ -144,7 +144,7 @@ where
stem_txs.len()
);
let agg_tx = transaction::aggregate(stem_txs)?;
let agg_tx = transaction::aggregate(stem_txs, None)?;
let src = TxSource {
debug_name: "fluff".to_string(),