Skip to content

Commit e56500e

Browse files
committed
Merge #610: Gate out core tests from v31
fd3709c Gate out core tests from v31 (Jamil Lambert, PhD) Pull request description: v31 does not have all of the RPC changes implemented yet which causes the newly added tests to fail. Gate out the tests so they are not run in v31. Closes #609 ACKs for top commit: satsfy: tACK fd3709c - Locally master break, with this commit, v31 passes. tcharding: ACK fd3709c Tree-SHA512: b160d3229324d51d106208d7d5bc8ef88d97a79fd2f76ae9506f422961f7d50a6ae8579a3c78a1324ddae46a86938e6a15cec17374bb52acbdaea1e4aeb68829
2 parents c01eb4f + fd3709c commit e56500e

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

integration_test/tests/blockchain_core.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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")]
78
use bitcoind::mtype;
89
use bitcoind::vtype::*;
910
use 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")]
2426
fn 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")]
4043
fn 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")]
148152
fn 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")]
176181
fn 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")]
219225
fn 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")]
252259
fn 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")]
267275
fn 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")]
282291
fn 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")]
307317
fn 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")]
320331
fn 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")]
333345
fn 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")]
403416
fn 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 }];

integration_test/tests/mining_core.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#[cfg(not(feature = "v25_and_below"))]
66
use bitcoin::SignedAmount;
77
use bitcoind::vtype::*;
8+
#[cfg(feature = "v30_and_below")]
89
use bitcoind::{TemplateRequest, TemplateRules};
910
use integration_test::{BitcoinD, BitcoinDExt as _, Wallet};
1011

@@ -52,6 +53,7 @@ fn generate_block_with_empty_tx_list() {
5253
}
5354

5455
#[test]
56+
#[cfg(feature = "v30_and_below")]
5557
fn get_block_template_has_optional_fields() {
5658
let (node1, _node2, _node3) = integration_test::three_node_network();
5759
node1.fund_wallet();
@@ -72,6 +74,7 @@ fn get_block_template_has_optional_fields() {
7274
}
7375

7476
#[test]
77+
#[cfg(feature = "v30_and_below")]
7578
fn get_block_template_includes_mempool_tx() {
7679
let (node1, _node2, _node3) = integration_test::three_node_network();
7780
node1.fund_wallet();

integration_test/tests/network_core.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use integration_test::{BitcoinD, BitcoinDExt as _, Wallet};
1010

1111
#[test]
1212
#[cfg(not(feature = "v20_and_below"))]
13+
#[cfg(feature = "v30_and_below")]
1314
fn get_peer_info_has_connection_type() {
1415
let (node1, _node2, _node3) = integration_test::three_node_network();
1516

@@ -30,6 +31,7 @@ fn get_net_totals_time_millis_is_non_zero() {
3031

3132
#[test]
3233
#[cfg(not(feature = "v20_and_below"))]
34+
#[cfg(feature = "v30_and_below")]
3335
fn get_peer_info_bytes_per_msg_non_empty() {
3436
let (node1, _node2, _node3) = integration_test::three_node_network();
3537

@@ -42,6 +44,7 @@ fn get_peer_info_bytes_per_msg_non_empty() {
4244

4345
#[test]
4446
#[cfg(not(feature = "v22_and_below"))]
47+
#[cfg(feature = "v30_and_below")]
4548
fn get_peer_info_synced_blocks_le_headers() {
4649
let (node1, _node2, _node3) = integration_test::three_node_network();
4750

@@ -66,6 +69,7 @@ fn get_network_info_local_services_names_non_empty() {
6669

6770
#[test]
6871
#[cfg(not(feature = "v20_and_below"))]
72+
#[cfg(feature = "v30_and_below")]
6973
fn get_network_info_connections_sum_matches_total() {
7074
let (node1, _node2, _node3) = integration_test::three_node_network();
7175

integration_test/tests/wallet_core.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fn get_transaction_block_fields_present_after_mining() {
3131

3232
#[test]
3333
#[cfg(not(feature = "v25_and_below"))]
34+
#[cfg(feature = "v30_and_below")]
3435
fn get_wallet_info_has_birthtime() {
3536
let node = BitcoinD::with_wallet(Wallet::Default, &[]);
3637

@@ -169,6 +170,7 @@ fn bump_fee_original_fee_rename_and_cross_field() {
169170

170171
#[test]
171172
#[cfg(not(feature = "v25_and_below"))]
173+
#[cfg(feature = "v30_and_below")]
172174
fn get_wallet_info_has_last_processed_block() {
173175
let node = BitcoinD::with_wallet(Wallet::Default, &[]);
174176
node.fund_wallet();

0 commit comments

Comments
 (0)