@@ -375,41 +375,6 @@ fn test_tx_conflict_handling() {
375
375
confirmed : Amount :: from_sat ( 30000 ) ,
376
376
} ,
377
377
} ,
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
- } ,
413
378
Scenario {
414
379
name : "B and B' spend A and conflict, C spends B, all the transactions are unconfirmed, B' has higher last_seen than B" ,
415
380
tx_templates : & [
0 commit comments