Skip to content

Commit dc11a47

Browse files
authored
Merge pull request rust-bitcoin#33 from tcharding/12-07-trivial-cleanup
Trivial cleanup
2 parents 0d7679b + ea4df6a commit dc11a47

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

integration_test/tests/blockchain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,21 @@ fn get_block_stats() {
8181
get_block_stats_by_hash();
8282
}
8383

84+
#[cfg(feature = "0_17_1")]
8485
fn get_block_stats_by_height() {
8586
let node = Node::new_no_wallet();
8687
let json = node.client.get_block_stats_by_height(0).expect("getblockstats");
8788
assert!(json.into_model().is_ok());
8889
}
8990

91+
#[cfg(feature = "0_17_1")]
9092
fn get_block_stats_by_hash() { // verbose = true
9193
let node = Node::new_no_wallet();
9294
let block_hash = best_block_hash();
9395
let json = node.client.get_block_stats_by_block_hash(&block_hash).expect("getblockstats");
9496
assert!(json.into_model().is_ok());
9597
}
9698

97-
9899
#[test]
99100
fn get_block_stats_by_height_txindex() {
100101
let node = Node::new_no_wallet_txindex();

node/src/client_versions.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// All features uses 26_2
2-
/// The version specific client and json types.
3-
///
4-
/// **THIS IS AVAILABLE FOR ALL VERSION NUMBER FEATURES** (eg `25_0`, `24_2` etc). This crate is
5-
/// unusual in that it expects exactly one version number feature to be selected, docs.rs is not set
6-
/// up to handle such oddity.
7-
///
1+
// The version specific client and json types.
2+
//
3+
// **THIS IS AVAILABLE FOR ALL VERSION NUMBER FEATURES** (eg `25_0`, `24_2` etc). This crate is
4+
// unusual in that it expects exactly one version number feature to be selected, docs.rs is not set
5+
// up to handle such oddity.
86

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

0 commit comments

Comments
 (0)