We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2a2a8 commit bde6b64Copy full SHA for bde6b64
integration_test/src/main.rs
@@ -302,11 +302,10 @@ fn test_get_block_stats(cl: &Client) {
302
303
fn test_get_block_stats_partial(cl: &Client) {
304
use bitcoincore_rpc::bitcoincore_rpc_json::BlockStatsFields;
305
- let fields = vec![BlockStatsFields::BlockHash, BlockStatsFields::Height, BlockStatsFields::TotalFee];
306
-
307
let tip = cl.get_block_count().unwrap();
308
let tip_hash = cl.get_best_block_hash().unwrap();
309
let header = cl.get_block_header(&tip_hash).unwrap();
+ let fields = vec![BlockStatsFields::BlockHash, BlockStatsFields::Height, BlockStatsFields::TotalFee];
310
let stats = cl.get_block_stats_fields(tip, &fields).unwrap();
311
assert_eq!(header.block_hash(), stats.block_hash.unwrap());
312
assert_eq!(tip, stats.height.unwrap());
0 commit comments