@@ -50,10 +50,10 @@ fn test_tx_conflict_handling() {
5050 tx_templates : & [
5151 TxTemplate {
5252 tx_name : "tx1" ,
53- inputs : & [ TxInTemplate :: Bogus ] ,
5453 outputs : & [ TxOutTemplate :: new ( 40000 , Some ( 0 ) ) ] ,
5554 anchors : & [ block_id ! ( 1 , "B" ) ] ,
5655 last_seen : None ,
56+ ..Default :: default ( )
5757 } ,
5858 TxTemplate {
5959 tx_name : "tx_conflict_1" ,
@@ -70,14 +70,12 @@ fn test_tx_conflict_handling() {
7070 ..Default :: default ( )
7171 } ,
7272 ] ,
73- // correct output if filtered by fee rate: tx1, tx_conflict_1
74- exp_chain_txs : HashSet :: from ( [ "tx1" , "tx_conflict_1" , "tx_conflict_2" ] ) ,
75- exp_chain_txouts : HashSet :: from ( [ ( "tx1" , 0 ) , ( "tx_conflict_1" , 0 ) , ( "tx_conflict_2" , 0 ) ] ) ,
76- // correct output if filtered by fee rate: tx_conflict_1
77- exp_unspents : HashSet :: from ( [ ( "tx_conflict_1" , 0 ) , ( "tx_conflict_2" , 0 ) ] ) ,
73+ exp_chain_txs : HashSet :: from ( [ "tx1" , "tx_conflict_2" ] ) ,
74+ exp_chain_txouts : HashSet :: from ( [ ( "tx1" , 0 ) , ( "tx_conflict_2" , 0 ) ] ) ,
75+ exp_unspents : HashSet :: from ( [ ( "tx_conflict_2" , 0 ) ] ) ,
7876 exp_balance : Balance {
7977 immature : 0 ,
80- trusted_pending : 50000 , // correct output if filtered by fee rate: 20000
78+ trusted_pending : 30000 ,
8179 untrusted_pending : 0 ,
8280 confirmed : 0 ,
8381 } ,
0 commit comments