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.
get_header_by_hash
get_height
1 parent 68b9d2b commit e010611Copy full SHA for e010611
src/lib.rs
@@ -450,10 +450,13 @@ mod test {
450
451
#[cfg(all(feature = "blocking", any(feature = "async", feature = "async-https")))]
452
#[tokio::test]
453
- async fn test_get_header() {
+ async fn test_get_header_by_hash() {
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();
+
+ 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();
460
assert_eq!(block_header, block_header_async);
461
}
462
0 commit comments