Simplify tx.validate() and transaction::aggregate() (#1436)
* simplify tx validation and aggregation we *only* need to account for reward when building a block from txs * rustfmt * cleanup and tests passing * rustfmt * better comments in with_reward() * fix wallet tests
This commit is contained in:
@@ -219,7 +219,7 @@ fn test_the_transaction_pool() {
|
||||
let tx4 = test_transaction(&keychain, vec![800], vec![799]);
|
||||
// tx1 and tx2 are already in the txpool (in aggregated form)
|
||||
// tx4 is the "new" part of this aggregated tx that we care about
|
||||
let agg_tx = transaction::aggregate(vec![tx1.clone(), tx2.clone(), tx4], None).unwrap();
|
||||
let agg_tx = transaction::aggregate(vec![tx1.clone(), tx2.clone(), tx4]).unwrap();
|
||||
write_pool
|
||||
.add_to_pool(test_source(), agg_tx, false, &header.hash())
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user