Skip to content

Commit bde6b64

Browse files
author
Gabriel Comte
committed
Rearrange code
1 parent 9a2a2a8 commit bde6b64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

integration_test/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,10 @@ fn test_get_block_stats(cl: &Client) {
302302

303303
fn test_get_block_stats_partial(cl: &Client) {
304304
use bitcoincore_rpc::bitcoincore_rpc_json::BlockStatsFields;
305-
let fields = vec![BlockStatsFields::BlockHash, BlockStatsFields::Height, BlockStatsFields::TotalFee];
306-
307305
let tip = cl.get_block_count().unwrap();
308306
let tip_hash = cl.get_best_block_hash().unwrap();
309307
let header = cl.get_block_header(&tip_hash).unwrap();
308+
let fields = vec![BlockStatsFields::BlockHash, BlockStatsFields::Height, BlockStatsFields::TotalFee];
310309
let stats = cl.get_block_stats_fields(tip, &fields).unwrap();
311310
assert_eq!(header.block_hash(), stats.block_hash.unwrap());
312311
assert_eq!(tip, stats.height.unwrap());

0 commit comments

Comments
 (0)