Skip to content

Commit

Permalink
integration_test: Add feature gates
Browse files Browse the repository at this point in the history
Clippy warns of unused functions, feature gate them.
  • Loading branch information
tcharding committed Dec 6, 2024
1 parent de1b7f6 commit 5380f99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration_test/tests/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ fn get_block_stats() {
get_block_stats_by_hash();
}

#[cfg(feature = "0_17_1")]
fn get_block_stats_by_height() {
let node = Node::new_no_wallet();
let json = node.client.get_block_stats_by_height(0).expect("getblockstats");
assert!(json.into_model().is_ok());
}

#[cfg(feature = "0_17_1")]
fn get_block_stats_by_hash() { // verbose = true
let node = Node::new_no_wallet();
let block_hash = best_block_hash();
Expand Down

0 comments on commit 5380f99

Please sign in to comment.