Skip to content

Commit ba50fd7

Browse files
committed
chore: remove redundant scenario from the transaction conflict handling tests.
1 parent 682ab54 commit ba50fd7

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

crates/chain/tests/test_tx_graph_conflicts.rs

-35
Original file line numberDiff line numberDiff line change
@@ -375,41 +375,6 @@ fn test_tx_conflict_handling() {
375375
confirmed: Amount::from_sat(30000),
376376
},
377377
},
378-
Scenario {
379-
name: "B and B' spend A and conflict, no other transactions, B' has higher last_seen",
380-
tx_templates: &[
381-
TxTemplate {
382-
tx_name: "A",
383-
inputs: &[TxInTemplate::Bogus],
384-
outputs: &[TxOutTemplate::new(10000, Some(0))],
385-
last_seen: None,
386-
..Default::default()
387-
},
388-
TxTemplate {
389-
tx_name: "B",
390-
inputs: &[TxInTemplate::PrevTx("A", 0)],
391-
outputs: &[TxOutTemplate::new(20000, Some(1))],
392-
last_seen: Some(100),
393-
..Default::default()
394-
},
395-
TxTemplate {
396-
tx_name: "B'",
397-
inputs: &[TxInTemplate::PrevTx("A", 0)],
398-
outputs: &[TxOutTemplate::new(30000, Some(2))],
399-
last_seen: Some(200),
400-
..Default::default()
401-
},
402-
],
403-
exp_chain_txs: HashSet::from(["A", "B'"]),
404-
exp_chain_txouts: HashSet::from([("A", 0), ("B'", 0)]),
405-
exp_unspents: HashSet::from([("B'", 0)]),
406-
exp_balance: Balance {
407-
immature: Amount::ZERO,
408-
trusted_pending: Amount::from_sat(30000),
409-
untrusted_pending: Amount::ZERO,
410-
confirmed: Amount::ZERO,
411-
},
412-
},
413378
Scenario {
414379
name: "B and B' spend A and conflict, C spends B, all the transactions are unconfirmed, B' has higher last_seen than B",
415380
tx_templates: &[

0 commit comments

Comments
 (0)