File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -943,6 +943,28 @@ fn test_tx_conflict_handling() {
943
943
confirmed : Amount :: ZERO ,
944
944
} ,
945
945
} ,
946
+ Scenario {
947
+ name : "coinbase tx must not become unconfirmed" ,
948
+ tx_templates : & [
949
+ TxTemplate {
950
+ tx_name : "coinbase" ,
951
+ inputs : & [ TxInTemplate :: Coinbase ] ,
952
+ outputs : & [ TxOutTemplate :: new ( 21_000 , Some ( 0 ) ) ] ,
953
+ // Stale block
954
+ anchors : & [ block_id ! ( 1 , "B-prime" ) ] ,
955
+ ..Default :: default ( )
956
+ }
957
+ ] ,
958
+ exp_chain_txs : HashSet :: from ( [ ] ) ,
959
+ exp_chain_txouts : HashSet :: from ( [ ] ) ,
960
+ exp_unspents : HashSet :: from ( [ ] ) ,
961
+ exp_balance : Balance {
962
+ immature : Amount :: ZERO ,
963
+ trusted_pending : Amount :: ZERO ,
964
+ untrusted_pending : Amount :: ZERO ,
965
+ confirmed : Amount :: ZERO ,
966
+ }
967
+ }
946
968
] ;
947
969
948
970
for scenario in scenarios {
You can’t perform that action at this time.
0 commit comments