From 96fd7b5ee35b715bde1b8a91b9f1defd5a3b888f Mon Sep 17 00:00:00 2001 From: fudancoder Date: Thu, 19 Dec 2024 21:04:04 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: fudancoder --- liana-gui/src/installer/mod.rs | 2 +- liana-gui/src/installer/step/descriptor/editor/key.rs | 2 +- liana-gui/src/lianalite/login.rs | 2 +- liana/src/descriptors/analysis.rs | 4 ++-- liana/src/descriptors/mod.rs | 2 +- tests/README.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/liana-gui/src/installer/mod.rs b/liana-gui/src/installer/mod.rs index efb06b4e..01c40b83 100644 --- a/liana-gui/src/installer/mod.rs +++ b/liana-gui/src/installer/mod.rs @@ -750,7 +750,7 @@ impl From for Error { impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::Auth(e) => write!(f, "Authentification error: {}", e), + Self::Auth(e) => write!(f, "Authentication error: {}", e), Self::Backend(e) => write!(f, "Remote backend error: {}", e), Self::Settings(e) => write!(f, "Settings file error: {}", e), Self::Bitcoind(e) => write!(f, "Failed to ping bitcoind: {}", e), diff --git a/liana-gui/src/installer/step/descriptor/editor/key.rs b/liana-gui/src/installer/step/descriptor/editor/key.rs index e4a6ac82..d0af90cb 100644 --- a/liana-gui/src/installer/step/descriptor/editor/key.rs +++ b/liana-gui/src/installer/step/descriptor/editor/key.rs @@ -149,7 +149,7 @@ impl super::DescriptorEditModal for EditXpubModal { fn update(&mut self, hws: &mut HardwareWallets, message: Message) -> Command { // Reset these fields. - // the fonction will setup them again if something is wrong + // the function will setup them again if something is wrong self.duplicate_master_fg = false; self.error = None; match message { diff --git a/liana-gui/src/lianalite/login.rs b/liana-gui/src/lianalite/login.rs index e09d1028..cfb71245 100644 --- a/liana-gui/src/lianalite/login.rs +++ b/liana-gui/src/lianalite/login.rs @@ -98,7 +98,7 @@ pub struct LianaLiteLogin { // Error due to connection connection_error: Option, - // Authentification Error + // Authentication Error auth_error: Option<&'static str>, } diff --git a/liana/src/descriptors/analysis.rs b/liana/src/descriptors/analysis.rs index 8ea2a358..48d142c6 100644 --- a/liana/src/descriptors/analysis.rs +++ b/liana/src/descriptors/analysis.rs @@ -324,10 +324,10 @@ impl PathInfo { // of our known master xpubs. if let Some(parent_der_paths) = origins.get(fg) { // If it is, make sure it's for one of the xpubs included in the descriptor. Remove - // the wilcard step and check if it's in the set of the derivation paths. + // the wildcard step and check if it's in the set of the derivation paths. let der_path_wo_wc: bip32::DerivationPath = der_path[..der_path.len() - 1].into(); if parent_der_paths.contains(&der_path_wo_wc) { - // If the origin of the key without the wilcard step is part of our keys, count + // If the origin of the key without the wildcard step is part of our keys, count // it as a signature. Also record how many times this master extended key // signed. sigs_count += 1; diff --git a/liana/src/descriptors/mod.rs b/liana/src/descriptors/mod.rs index dfcdbe7a..dadf38fb 100644 --- a/liana/src/descriptors/mod.rs +++ b/liana/src/descriptors/mod.rs @@ -293,7 +293,7 @@ impl LianaDescriptor { // We add one to account for the witness stack size, as the values above give the // difference in size for a satisfied input that was *already* in a transaction // that spent one or more Segwit coins (and thus already have 1 WU accounted for the - // emtpy witness). But this method is used to account between a completely "nude" + // empty witness). But this method is used to account between a completely "nude" // transaction (and therefore no Segwit marker nor empty witness in inputs) and a // satisfied transaction. self.multi_desc diff --git a/tests/README.md b/tests/README.md index eb726db3..99a3c649 100644 --- a/tests/README.md +++ b/tests/README.md @@ -33,7 +33,7 @@ python3 -m venv venv pip install -r tests/requirements.txt ``` -Additionaly you need to have `bitcoind` installed on your computer, please +Additionally you need to have `bitcoind` installed on your computer, please refer to [bitcoincore](https://bitcoincore.org/en/download/) for installation. You may use a specific `bitcoind` binary by specifying the `BITCOIND_PATH` env var.