44//! rpc_txoutproof.py, rpc_scantxoutset.py, rpc_gettxspendingprevout.py,
55//! rpc_dumptxoutset.py and rpc_getblockstats.py
66
7+ #[ cfg( feature = "v30_and_below" ) ]
78use bitcoind:: mtype;
89use bitcoind:: vtype:: * ;
910use integration_test:: { BitcoinD , BitcoinDExt as _, Wallet } ;
@@ -21,6 +22,7 @@ fn get_blockchain_info_pruned_node_has_prune_fields() {
2122}
2223
2324#[ test]
25+ #[ cfg( feature = "v30_and_below" ) ]
2426fn get_chain_tx_stats_default_window_has_optional_fields ( ) {
2527 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
2628 let addr = node. client . new_address ( ) . unwrap ( ) ;
@@ -37,6 +39,7 @@ fn get_chain_tx_stats_default_window_has_optional_fields() {
3739}
3840
3941#[ test]
42+ #[ cfg( feature = "v30_and_below" ) ]
4043fn get_chain_tx_stats_pinned_to_block1_has_no_window_fields ( ) {
4144 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
4245 let addr = node. client . new_address ( ) . unwrap ( ) ;
@@ -145,6 +148,7 @@ fn get_block_hash_at_tip_matches_best() {
145148}
146149
147150#[ test]
151+ #[ cfg( feature = "v30_and_below" ) ]
148152fn get_block_verbose_one_tx_count_matches_n_tx ( ) {
149153 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
150154 node. fund_wallet ( ) ;
@@ -173,6 +177,7 @@ fn get_chain_tips_active_tip_matches_best() {
173177}
174178
175179#[ test]
180+ #[ cfg( feature = "v30_and_below" ) ]
176181fn get_mempool_entry_height_and_no_parents ( ) {
177182 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
178183 node. fund_wallet ( ) ;
@@ -216,6 +221,7 @@ fn scan_tx_out_set_best_block_matches_tip() {
216221
217222#[ test]
218223#[ cfg( not( feature = "v22_and_below" ) ) ]
224+ #[ cfg( feature = "v30_and_below" ) ]
219225fn get_deployment_info_genesis_vs_tip ( ) {
220226 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
221227 node. fund_wallet ( ) ;
@@ -249,6 +255,7 @@ fn get_tx_spending_prevout_for_unspent_output() {
249255
250256#[ test]
251257#[ cfg( not( feature = "v28_and_below" ) ) ]
258+ #[ cfg( feature = "v30_and_below" ) ]
252259fn get_block_verbose_two_non_coinbase_has_fee ( ) {
253260 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
254261 node. fund_wallet ( ) ;
@@ -264,6 +271,7 @@ fn get_block_verbose_two_non_coinbase_has_fee() {
264271
265272#[ test]
266273#[ cfg( not( feature = "v28_and_below" ) ) ]
274+ #[ cfg( feature = "v30_and_below" ) ]
267275fn get_block_verbose_three_non_coinbase_has_prevouts ( ) {
268276 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
269277 node. fund_wallet ( ) ;
@@ -279,6 +287,7 @@ fn get_block_verbose_three_non_coinbase_has_prevouts() {
279287}
280288
281289#[ test]
290+ #[ cfg( feature = "v30_and_below" ) ]
282291fn get_mempool_entry_spent_by_contains_child ( ) {
283292 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
284293 node. fund_wallet ( ) ;
@@ -304,6 +313,7 @@ fn get_raw_mempool_sequence_includes_tx() {
304313}
305314
306315#[ test]
316+ #[ cfg( feature = "v30_and_below" ) ]
307317fn get_mempool_ancestors_verbose_keyed_by_parent_txid ( ) {
308318 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
309319 node. fund_wallet ( ) ;
@@ -317,6 +327,7 @@ fn get_mempool_ancestors_verbose_keyed_by_parent_txid() {
317327}
318328
319329#[ test]
330+ #[ cfg( feature = "v30_and_below" ) ]
320331fn get_block_verbose_one_stripped_size_le_size ( ) {
321332 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
322333 node. fund_wallet ( ) ;
@@ -330,6 +341,7 @@ fn get_block_verbose_one_stripped_size_le_size() {
330341}
331342
332343#[ test]
344+ #[ cfg( feature = "v30_and_below" ) ]
333345fn get_block_verbose_one_next_block_hash_some_for_non_tip ( ) {
334346 let node = BitcoinD :: with_wallet ( Wallet :: Default , & [ ] ) ;
335347 node. fund_wallet ( ) ;
@@ -400,6 +412,7 @@ fn get_block_stats_v25_actual_utxo_fields() {
400412 assert ! ( json. utxo_size_increase_actual. is_some( ) ) ;
401413}
402414
415+ #[ cfg( feature = "v30_and_below" ) ]
403416fn create_child_spending_parent ( node : & BitcoinD , parent : bitcoin:: Txid ) -> bitcoin:: Txid {
404417 use bitcoind:: { Input , Output } ;
405418 let inputs = vec ! [ Input { txid: parent, vout: 0 , sequence: None } ] ;
0 commit comments