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 a0f1aca commit b6d663bCopy full SHA for b6d663b
src/lib.rs
@@ -545,6 +545,15 @@ mod test {
545
assert_eq!(tip_hash, tip_hash_async);
546
}
547
548
+ #[cfg(all(feature = "blocking", any(feature = "async", feature = "async-https")))]
549
+ #[tokio::test]
550
+ async fn test_get_block_hash() {
551
+ let (blocking_client, async_client) = setup_clients().await;
552
+ let block_hash = blocking_client.get_block_hash(21).unwrap();
553
+ let block_hash_async = async_client.get_block_hash(21).await.unwrap();
554
+ assert_eq!(block_hash, block_hash_async);
555
+ }
556
+
557
#[cfg(all(feature = "blocking", any(feature = "async", feature = "async-https")))]
558
#[tokio::test]
559
async fn test_get_txid_at_block_index() {
0 commit comments