docs: fix spelling errors

This commit is contained in:
Steve Myers committed 2023-09-16 10:43:26 -05:00
1 parent c20a4da9fc
commit 94f8fa530b
11 files changed
+31 -28

No files matched your search

+3 -3
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 })
}
};
+3 -3
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 })
}
};