diff --git a/integration_test/tests/blockchain.rs b/integration_test/tests/blockchain.rs index 194bb71..fc10fc8 100644 --- a/integration_test/tests/blockchain.rs +++ b/integration_test/tests/blockchain.rs @@ -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(); @@ -94,7 +96,6 @@ fn get_block_stats_by_hash() { // verbose = true assert!(json.into_model().is_ok()); } - #[test] fn get_block_stats_by_height_txindex() { let node = Node::new_no_wallet_txindex(); diff --git a/node/src/client_versions.rs b/node/src/client_versions.rs index c97a7c5..e973681 100644 --- a/node/src/client_versions.rs +++ b/node/src/client_versions.rs @@ -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.