Skip to content

Commit

Permalink
Merge pull request #33 from tcharding/12-07-trivial-cleanup
Browse files Browse the repository at this point in the history
Trivial cleanup
  • Loading branch information
tcharding authored Dec 6, 2024
2 parents 0d7679b + ea4df6a commit dc11a47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion integration_test/tests/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,21 @@ 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();
let json = node.client.get_block_stats_by_block_hash(&block_hash).expect("getblockstats");
assert!(json.into_model().is_ok());
}


#[test]
fn get_block_stats_by_height_txindex() {
let node = Node::new_no_wallet_txindex();
Expand Down
12 changes: 5 additions & 7 deletions node/src/client_versions.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// All features uses 26_2
/// The version specific client and json types.
///
/// **THIS IS AVAILABLE FOR ALL VERSION NUMBER FEATURES** (eg `25_0`, `24_2` etc). This crate is
/// unusual in that it expects exactly one version number feature to be selected, docs.rs is not set
/// up to handle such oddity.
///
// The version specific client and json types.
//
// **THIS IS AVAILABLE FOR ALL VERSION NUMBER FEATURES** (eg `25_0`, `24_2` etc). This crate is
// unusual in that it expects exactly one version number feature to be selected, docs.rs is not set
// up to handle such oddity.

#[cfg(feature = "28_0")]
#[allow(unused_imports)] // Not all users need the json types.
Expand Down

0 comments on commit dc11a47

Please sign in to comment.