Skip to content

Commit eefdf36

Browse files
committed
docs: fix spelling errors
1 parent d6bcd9b commit eefdf36

File tree

11 files changed

+32
-29
lines changed

11 files changed

+32
-29
lines changed

CHANGELOG.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ BDK and LDK together.
158158
- Add the ability to specify which leaves to sign in a taproot transaction through `TapLeavesOptions` in `SignOptions`
159159
- Add the ability to specify whether a taproot transaction should be signed using the internal key or not, using `sign_with_tap_internal_key` in `SignOptions`
160160
- Consolidate params `fee_amount` and `amount_needed` in `target_amount` in `CoinSelectionAlgorithm::coin_select` signature.
161-
- Change the meaning of the `fee_amount` field inside `CoinSelectionResult`: from now on the `fee_amount` will represent only the fees asociated with the utxos in the `selected` field of `CoinSelectionResult`.
161+
- Change the meaning of the `fee_amount` field inside `CoinSelectionResult`: from now on the `fee_amount` will represent only the fees associated with the utxos in the `selected` field of `CoinSelectionResult`.
162162
- New `RpcBlockchain` implementation with various fixes.
163163
- Return balance in separate categories, namely `confirmed`, `trusted_pending`, `untrusted_pending` & `immature`.
164164

@@ -449,7 +449,7 @@ final transaction is created by calling `finish` on the builder.
449449
#### Changed
450450
- Simplify the architecture of blockchain traits
451451
- Improve sync
452-
- Remove unused varaint HeaderParseFail
452+
- Remove unused variant HeaderParseFail
453453

454454
### CLI
455455
#### Added
@@ -529,7 +529,7 @@ final transaction is created by calling `finish` on the builder.
529529
- Use TXIN_DEFAULT_WEIGHT constant in coin selection
530530
- Replace `must_use` with `required` in coin selection
531531
- Take both spending policies into account in create_tx
532-
- Check last derivation in cache to avoid recomputation
532+
- Check last derivation in cache to avoid recomputing
533533
- Use the branch-and-bound cs by default
534534
- Make coin_select return UTXOs instead of TxIns
535535
- Build output lookup inside complete transaction
@@ -550,7 +550,7 @@ final transaction is created by calling `finish` on the builder.
550550
- Require esplora feature for repl example
551551

552552
#### Security
553-
- Use dirs-next instead of dirs since the latter is unmantained
553+
- Use dirs-next instead of dirs since the latter is unmaintained
554554

555555
## [0.1.0-beta.1] - 2020-09-08
556556

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This is also enforced by the CI.
9191
Security
9292
--------
9393

94-
Security is a high priority of BDK; disclosure of security vulnerabilites helps
94+
Security is a high priority of BDK; disclosure of security vulnerabilities helps
9595
prevent user loss of funds.
9696

9797
Note that BDK is currently considered "pre-production" during this time, there

crates/bdk/src/wallet/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Wallet {
167167
pub enum NewError<P> {
168168
/// There was problem with the descriptors passed in
169169
Descriptor(crate::descriptor::DescriptorError),
170-
/// We were unable to load the wallet's data from the persistance backend
170+
/// We were unable to load the wallet's data from the persistence backend
171171
Persist(P),
172172
}
173173

@@ -179,7 +179,7 @@ where
179179
match self {
180180
NewError::Descriptor(e) => e.fmt(f),
181181
NewError::Persist(e) => {
182-
write!(f, "failed to load wallet from persistance backend: {}", e)
182+
write!(f, "failed to load wallet from persistence backend: {}", e)
183183
}
184184
}
185185
}
@@ -391,9 +391,9 @@ impl<D> Wallet<D> {
391391

392392
/// Returns a iterators of all the script pubkeys for the `Internal` and External` variants in `KeychainKind`.
393393
///
394-
/// This is inteded to be used when doing a full scan of your addresses (e.g. after restoring
394+
/// This is intended to be used when doing a full scan of your addresses (e.g. after restoring
395395
/// from seed words). You pass the `BTreeMap` of iterators to a blockchain data source (e.g.
396-
/// electrum server) which will go through each address until it reaches a *stop grap*.
396+
/// electrum server) which will go through each address until it reaches a *stop gap*.
397397
///
398398
/// Note carefully that iterators go over **all** script pubkeys on the keychains (not what
399399
/// script pubkeys the wallet is storing internally).
@@ -1735,7 +1735,7 @@ impl<D> Wallet<D> {
17351735
Ok(())
17361736
}
17371737

1738-
/// Commits all curently [`staged`] changed to the persistence backend returning and error when
1738+
/// Commits all currently [`staged`] changed to the persistence backend returning and error when
17391739
/// this fails.
17401740
///
17411741
/// This returns whether the `update` resulted in any changes.

crates/chain/src/chain_data.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl<A: Anchor> FullTxOut<A> {
202202
/// Whether the `txout` is considered mature.
203203
///
204204
/// Depending on the implementation of [`confirmation_height_upper_bound`] in [`Anchor`], this
205-
/// method may return false-negatives. In other words, interpretted confirmation count may be
205+
/// method may return false-negatives. In other words, interpreted confirmation count may be
206206
/// less than the actual value.
207207
///
208208
/// [`confirmation_height_upper_bound`]: Anchor::confirmation_height_upper_bound
@@ -226,10 +226,10 @@ impl<A: Anchor> FullTxOut<A> {
226226

227227
/// Whether the utxo is/was/will be spendable with chain `tip`.
228228
///
229-
/// This method does not take into account the locktime.
229+
/// This method does not take into account the lock time.
230230
///
231231
/// Depending on the implementation of [`confirmation_height_upper_bound`] in [`Anchor`], this
232-
/// method may return false-negatives. In other words, interpretted confirmation count may be
232+
/// method may return false-negatives. In other words, interpreted confirmation count may be
233233
/// less than the actual value.
234234
///
235235
/// [`confirmation_height_upper_bound`]: Anchor::confirmation_height_upper_bound

crates/chain/src/local_chain.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub type ChangeSet = BTreeMap<u32, Option<BlockHash>>;
1818
///
1919
/// Each checkpoint contains the height and hash of a block ([`BlockId`]).
2020
///
21-
/// Internaly, checkpoints are nodes of a reference-counted linked-list. This allows the caller to
21+
/// Internally, checkpoints are nodes of a reference-counted linked-list. This allows the caller to
2222
/// cheaply clone a [`CheckPoint`] without copying the whole list and to view the entire chain
2323
/// without holding a lock on [`LocalChain`].
2424
#[derive(Debug, Clone)]
@@ -427,7 +427,7 @@ impl core::fmt::Display for InsertBlockError {
427427
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
428428
write!(
429429
f,
430-
"failed to insert block at height {} as blockhashes conflict: original={}, update={}",
430+
"failed to insert block at height {} as block hashes conflict: original={}, update={}",
431431
self.height, self.original_hash, self.update_hash
432432
)
433433
}
@@ -498,7 +498,7 @@ fn merge_chains(
498498
prev_orig = curr_orig.take();
499499

500500
// OPTIMIZATION: we have run out of update blocks so we don't need to continue
501-
// iterating becuase there's no possibility of adding anything to changeset.
501+
// iterating because there's no possibility of adding anything to changeset.
502502
if u.is_none() {
503503
break;
504504
}
@@ -507,7 +507,7 @@ fn merge_chains(
507507
if o.hash() == u.hash() {
508508
// We have found our point of agreement 🎉 -- we require that the previous (i.e.
509509
// higher because we are iterating backwards) block in the original chain was
510-
// invalidated (if it exists). This ensures that there is an unambigious point of
510+
// invalidated (if it exists). This ensures that there is an unambiguous point of
511511
// connection to the original chain from the update chain (i.e. we know the
512512
// precisely which original blocks are invalid).
513513
if !prev_orig_was_invalidated && !point_of_agreement_found {

crates/chain/src/persist.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ where
2727
}
2828
}
2929

30-
/// Stage a `changeset` to be commited later with [`commit`].
30+
/// Stage a `changeset` to be committed later with [`commit`].
3131
///
3232
/// [`commit`]: Self::commit
3333
pub fn stage(&mut self, changeset: C) {
3434
self.stage.append(changeset)
3535
}
3636

37-
/// Get the changes that have not been commited yet.
37+
/// Get the changes that have not been committed yet.
3838
pub fn staged(&self) -> &C {
3939
&self.stage
4040
}
4141

42-
/// Commit the staged changes to the underlying persistance backend.
42+
/// Commit the staged changes to the underlying persistence backend.
4343
///
4444
/// Changes that are committed (if any) are returned.
4545
///

crates/esplora/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BDK Esplora
22

3-
BDK Esplora extends [`esplora_client`](crate::esplora_client) to update [`bdk_chain`] structures
3+
BDK Esplora extends [`esplora-client`] to update [`bdk_chain`] structures
44
from an Esplora server.
55

66
## Usage
@@ -31,3 +31,6 @@ use bdk_esplora::EsploraExt;
3131
```
3232

3333
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).
34+
35+
[`esplora-client`]: https://docs.rs/esplora-client/
36+
[`bdk_chain`]: https://docs.rs/bdk-chain/

crates/esplora/src/async_ext.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl EsploraAsyncExt for esplora_client::AsyncClient {
136136

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

crates/esplora/src/blocking_ext.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl EsploraExt for esplora_client::BlockingClient {
127127

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

nursery/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
This is a directory for crates that are experimental and have not been released yet.
44
Keep in mind that they may never be released.
5-
Things in `/example-crates` may use them to demonsrate how things might look in the future.
5+
Things in `/example-crates` may use them to demonstrate how things might look in the future.

nursery/tmp_plan/src/template.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct PlanKey<Ak> {
3535
impl<Ak> TemplateItem<Ak> {
3636
pub fn expected_size(&self) -> usize {
3737
match self {
38-
TemplateItem::Sign { .. } => 64, /* size of sig TODO: take into consideration sighash falg */
38+
TemplateItem::Sign { .. } => 64, /* size of sig TODO: take into consideration sighash flag */
3939
TemplateItem::Pk { .. } => 32,
4040
TemplateItem::One => varint_len(1),
4141
TemplateItem::Zero => 0, /* zero means an empty witness element */

0 commit comments

Comments
 (0)