File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -450,10 +450,13 @@ mod test {
450
450
451
451
#[ cfg( all( feature = "blocking" , any( feature = "async" , feature = "async-https" ) ) ) ]
452
452
#[ tokio:: test]
453
- async fn test_get_header ( ) {
453
+ async fn test_get_header_by_hash ( ) {
454
454
let ( blocking_client, async_client) = setup_clients ( ) . await ;
455
- let block_header = blocking_client. get_header ( 53 ) . unwrap ( ) ;
456
- let block_header_async = async_client. get_header ( 53 ) . await . unwrap ( ) ;
455
+
456
+ let block_hash = BITCOIND . client . get_block_hash ( 23 ) . unwrap ( ) ;
457
+
458
+ let block_header = blocking_client. get_header_by_hash ( & block_hash) . unwrap ( ) ;
459
+ let block_header_async = async_client. get_header_by_hash ( & block_hash) . await . unwrap ( ) ;
457
460
assert_eq ! ( block_header, block_header_async) ;
458
461
}
459
462
You can’t perform that action at this time.
0 commit comments