File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,21 @@ fn get_block_stats() {
8181 get_block_stats_by_hash ( ) ;
8282}
8383
84+ #[ cfg( feature = "0_17_1" ) ]
8485fn 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" ) ]
9092fn 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]
99100fn get_block_stats_by_height_txindex ( ) {
100101 let node = Node :: new_no_wallet_txindex ( ) ;
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments