docs: fix spelling errors

This commit is contained in:
Steve Myers
2023-08-21 15:01:08 -05:00
parent c20a4da9fc
commit 94f8fa530b
11 changed files with 31 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
# BDK Esplora
BDK Esplora extends [`esplora_client`](crate::esplora_client) to update [`bdk_chain`] structures
BDK Esplora extends [`esplora-client`] to update [`bdk_chain`] structures
from an Esplora server.
## Usage
@@ -31,3 +31,6 @@ use bdk_esplora::EsploraExt;
```
For full examples, refer to [`example-crates/wallet_esplora`](https://github.com/bitcoindevkit/bdk/tree/master/example-crates/wallet_esplora) (blocking) and [`example-crates/wallet_esplora_async`](https://github.com/bitcoindevkit/bdk/tree/master/example-crates/wallet_esplora_async).
[`esplora-client`]: https://docs.rs/esplora-client/
[`bdk_chain`]: https://docs.rs/bdk-chain/

View File

@@ -136,7 +136,7 @@ impl EsploraAsyncExt for esplora_client::AsyncClient {
// the updated hash (block hash at this height after the update), can either be:
// 1. a block that already existed in `fetched_blocks`
// 2. a block that exists locally and atleast has a depth of ASSUME_FINAL_DEPTH
// 2. a block that exists locally and at least has a depth of ASSUME_FINAL_DEPTH
// 3. otherwise we can freshly fetch the block from remote, which is safe as it
// is guaranteed that this would be at or below ASSUME_FINAL_DEPTH from the
// remote tip
@@ -160,7 +160,7 @@ impl EsploraAsyncExt for esplora_client::AsyncClient {
let first_new_height = *fetched_blocks
.keys()
.next()
.expect("must have atleast one new block");
.expect("must have at least one new block");
if first_new_height >= local_block.height {
break;
}
@@ -179,7 +179,7 @@ impl EsploraAsyncExt for esplora_client::AsyncClient {
let (&height, &hash) = fetched_blocks
.iter()
.next()
.expect("must have atleast one new block");
.expect("must have at least one new block");
CheckPoint::new(BlockId { height, hash })
}
};

View File

@@ -127,7 +127,7 @@ impl EsploraExt for esplora_client::BlockingClient {
// the updated hash (block hash at this height after the update), can either be:
// 1. a block that already existed in `fetched_blocks`
// 2. a block that exists locally and atleast has a depth of ASSUME_FINAL_DEPTH
// 2. a block that exists locally and at least has a depth of ASSUME_FINAL_DEPTH
// 3. otherwise we can freshly fetch the block from remote, which is safe as it
// is guaranteed that this would be at or below ASSUME_FINAL_DEPTH from the
// remote tip
@@ -151,7 +151,7 @@ impl EsploraExt for esplora_client::BlockingClient {
let first_new_height = *fetched_blocks
.keys()
.next()
.expect("must have atleast one new block");
.expect("must have at least one new block");
if first_new_height >= local_block.height {
break;
}
@@ -170,7 +170,7 @@ impl EsploraExt for esplora_client::BlockingClient {
let (&height, &hash) = fetched_blocks
.iter()
.next()
.expect("must have atleast one new block");
.expect("must have at least one new block");
CheckPoint::new(BlockId { height, hash })
}
};