Skip to content

Commit cc552c5

Browse files
Merge #1220: chore: fix typos and remove unused speculos dockerfiles
27a63ab chore: typos fixed (Einherjar) Pull request description: ### Description Fixes the typos and remove unused speculos dockerfiles that was done in #1165. Moving these changes into this PR to be merged first. Then, we can rebase #1165 and make it only related to CI and Nix. (Maybe do a big squash 😄) ## Note to Reviewers About the speculos stuff, we are not using them, removed in #793, more specifically in 3f5a78a. ### Changelog notice - Fix typos in codebase and docs - Remove unused CI tests with hardware signer Dockerfiles ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [ ] I've added tests for the new feature * [ ] I've added docs for the new feature #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [ ] I'm linking the issue being fixed by this PR ACKs for top commit: danielabrozzoni: ACK 27a63ab Tree-SHA512: a01101d0741e2b0e1d1254b5cae670c5a936bb0b89332c102feb57d58d2b9ae995ed4436068b0dc5fae73dbe22431c3143d6e04cdc12eab991bd726cfd2fbe25
2 parents bc8d6a3 + 27a63ab commit cc552c5

File tree

15 files changed

+26
-25
lines changed

15 files changed

+26
-25
lines changed

.github/workflows/code_coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
uses: Swatinem/[email protected]
2828
- name: Install grcov
2929
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
30+
# TODO: re-enable the hwi tests
3031
- name: Build simulator image
3132
run: docker build -t hwi/ledger_emulator ./ci -f ci/Dockerfile.ledger
3233
- name: Run simulator image

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ final transaction is created by calling `finish` on the builder.
517517
- Default to SIGHASH_ALL if not specified
518518
- Replace ChangeSpendPolicy::filter_utxos with a predicate
519519
- Make 'unspendable' into a HashSet
520-
- Stop implicitly enforcing manaul selection by .add_utxo
520+
- Stop implicitly enforcing manual selection by .add_utxo
521521
- Rename DumbCS to LargestFirstCoinSelection
522522
- Rename must_use_utxos to required_utxos
523523
- Rename may_use_utxos to optional_uxtos

crates/bdk/src/descriptor/policy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ pub enum PolicyError {
521521
impl fmt::Display for PolicyError {
522522
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
523523
match self {
524-
Self::NotEnoughItemsSelected(err) => write!(f, "Not enought items selected: {}", err),
524+
Self::NotEnoughItemsSelected(err) => write!(f, "Not enough items selected: {}", err),
525525
Self::IndexOutOfRange(index) => write!(f, "Index out of range: {}", index),
526526
Self::AddOnLeaf => write!(f, "Add on leaf"),
527527
Self::AddOnPartialComplete => write!(f, "Add on partial complete"),

crates/bdk/src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ impl<D> Wallet<D> {
14591459
};
14601460

14611461
// TODO: We should pay attention when adding a new output: this might increase
1462-
// the lenght of the "number of vouts" parameter by 2 bytes, potentially making
1462+
// the length of the "number of vouts" parameter by 2 bytes, potentially making
14631463
// our feerate too low
14641464
tx.output.push(drain_output);
14651465
}

crates/bdk/src/wallet/signer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ pub struct SignOptions {
754754
/// Whether the signer should trust the `witness_utxo`, if the `non_witness_utxo` hasn't been
755755
/// provided
756756
///
757-
/// Defaults to `false` to mitigate the "SegWit bug" which chould trick the wallet into
757+
/// Defaults to `false` to mitigate the "SegWit bug" which should trick the wallet into
758758
/// paying a fee larger than expected.
759759
///
760760
/// Some wallets, especially if relatively old, might not provide the `non_witness_utxo` for

crates/bdk/src/wallet/tx_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'a, D, Cs: Clone, Ctx> Clone for TxBuilder<'a, D, Cs, Ctx> {
182182
impl<'a, D, Cs: CoinSelectionAlgorithm, Ctx: TxBuilderContext> TxBuilder<'a, D, Cs, Ctx> {
183183
/// Set a custom fee rate
184184
/// The fee_rate method sets the mining fee paid by the transaction as a rate on its size.
185-
/// This means that the total fee paid is equal to this rate * size of the transaction in virtual Bytes (vB) or Weigth Unit (wu).
185+
/// This means that the total fee paid is equal to this rate * size of the transaction in virtual Bytes (vB) or Weight Unit (wu).
186186
/// This rate is internally expressed in satoshis-per-virtual-bytes (sats/vB) using FeeRate::from_sat_per_vb, but can also be set by:
187187
/// * sats/kvB (1000 sats/kvB == 1 sats/vB) using FeeRate::from_sat_per_kvb
188188
/// * btc/kvB (0.00001000 btc/kvB == 1 sats/vB) using FeeRate::from_btc_per_kvb

crates/bdk/tests/wallet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ fn test_add_foreign_utxo_where_outpoint_doesnt_match_psbt_input() {
12931293
satisfaction_weight
12941294
)
12951295
.is_ok(),
1296-
"shoulld be ok when outpoint does match psbt_input"
1296+
"should be ok when outpoint does match psbt_input"
12971297
);
12981298
}
12991299

@@ -2013,7 +2013,7 @@ fn test_bump_fee_add_input_change_dust() {
20132013

20142014
let mut tx = psbt.extract_tx();
20152015
for txin in &mut tx.input {
2016-
txin.witness.push([0x00; P2WPKH_FAKE_WITNESS_SIZE]); // to get realisitc weight
2016+
txin.witness.push([0x00; P2WPKH_FAKE_WITNESS_SIZE]); // to get realistic weight
20172017
}
20182018
let original_tx_weight = tx.weight();
20192019
assert_eq!(tx.input.len(), 1);

crates/bitcoind_rpc/tests/test_emitter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ fn mempool_during_reorg() -> anyhow::Result<()> {
735735
"first mempool emission should include all txs",
736736
);
737737

738-
// perform reorgs at different heights, these reorgs will not comfirm transactions in the
738+
// perform reorgs at different heights, these reorgs will not confirm transactions in the
739739
// mempool
740740
for reorg_count in 1..TIP_DIFF {
741741
println!("REORG COUNT: {}", reorg_count);
@@ -808,10 +808,10 @@ fn mempool_during_reorg() -> anyhow::Result<()> {
808808
/// If blockchain re-org includes the start height, emit new start height block
809809
///
810810
/// 1. mine 101 blocks
811-
/// 2. emmit blocks 99a, 100a
811+
/// 2. emit blocks 99a, 100a
812812
/// 3. invalidate blocks 99a, 100a, 101a
813813
/// 4. mine new blocks 99b, 100b, 101b
814-
/// 5. emmit block 99b
814+
/// 5. emit block 99b
815815
///
816816
/// The block hash of 99b should be different than 99a, but their previous block hashes should
817817
/// be the same.

crates/chain/src/indexed_tx_graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ where
160160
/// Batch insert unconfirmed transactions, filtering out those that are irrelevant.
161161
///
162162
/// Relevancy is determined by the internal [`Indexer::is_tx_relevant`] implementation of `I`.
163-
/// Irrelevant tansactions in `txs` will be ignored.
163+
/// Irrelevant transactions in `txs` will be ignored.
164164
///
165165
/// Items of `txs` are tuples containing the transaction and a *last seen* timestamp. The
166166
/// *last seen* communicates when the transaction is last seen in the mempool which is used for
@@ -223,7 +223,7 @@ where
223223
/// [`AnchorFromBlockPosition::from_block_position`].
224224
///
225225
/// Relevancy is determined by the internal [`Indexer::is_tx_relevant`] implementation of `I`.
226-
/// Irrelevant tansactions in `txs` will be ignored.
226+
/// Irrelevant transactions in `txs` will be ignored.
227227
pub fn apply_block_relevant(
228228
&mut self,
229229
block: Block,

crates/chain/src/tx_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl<A: Clone + Ord> TxGraph<A> {
480480

481481
/// Inserts the given `seen_at` for `txid` into [`TxGraph`].
482482
///
483-
/// Note that [`TxGraph`] only keeps track of the lastest `seen_at`.
483+
/// Note that [`TxGraph`] only keeps track of the latest `seen_at`.
484484
pub fn insert_seen_at(&mut self, txid: Txid, seen_at: u64) -> ChangeSet<A> {
485485
let mut update = Self::default();
486486
let (_, _, update_last_seen) = update.txs.entry(txid).or_default();

0 commit comments

Comments
 (0)