aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhernanmarino <87907936+hernanmarino@users.noreply.github.com>2023-03-03 18:43:40 -0300
committerHernan Marino <hmarino@gmail.com>2023-03-03 19:06:02 -0300
commit987f1bb41c0a8c54422066e10d1c63e19c4df66d (patch)
tree94cb21411ad780fb9a45202ce83a03daefc13a79 /src
parent3b88c8502534f0dc94e0abcb04ffa80ba8bd7f01 (diff)
Fixed a couple of typos in comments to make linter happy
Diffstat (limited to 'src')
-rw-r--r--src/script/sign.h2
-rw-r--r--src/test/fuzz/miniscript.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/script/sign.h b/src/script/sign.h
index fe2354cad7..f46bc55992 100644
--- a/src/script/sign.h
+++ b/src/script/sign.h
@@ -102,7 +102,7 @@ bool ProduceSignature(const SigningProvider& provider, const BaseSignatureCreato
* @param provider Utility containing the information necessary to solve a script.
* @param fromPubKey The script to produce a satisfaction for.
* @param txTo The spending transaction.
- * @param nIn The index of the input in `txTo` refering the output being spent.
+ * @param nIn The index of the input in `txTo` referring the output being spent.
* @param amount The value of the output being spent.
* @param nHashType Signature hash type.
* @param sig_data Additional data provided to solve a script. Filled with the resulting satisfying
diff --git a/src/test/fuzz/miniscript.cpp b/src/test/fuzz/miniscript.cpp
index f3a48daf2c..6ea8a3f185 100644
--- a/src/test/fuzz/miniscript.cpp
+++ b/src/test/fuzz/miniscript.cpp
@@ -458,7 +458,7 @@ struct SmartInfo
Type type_zo = zo == 0 ? "z"_mst : zo == 1 ? "o"_mst : ""_mst;
for (int n = 0; n < 2; ++n) { /* select from (none),n */
if (zo == 0 && n == 1) continue; /* z conflicts with n */
- if (base == 3 && n == 1) continue; /* W conficts with n */
+ if (base == 3 && n == 1) continue; /* W conflicts with n */
Type type_n = n == 0 ? ""_mst : "n"_mst;
for (int d = 0; d < 2; ++d) { /* select from (none),d */
if (base == 2 && d == 1) continue; /* V conflicts with d */
@@ -940,7 +940,7 @@ void TestNode(const NodeRef& node, FuzzedDataProvider& provider)
auto decoded = miniscript::FromScript(script, PARSER_CTX);
assert(decoded);
// Note we can't use *decoded == *node because the miniscript representation may differ, so we check that:
- // - The script corresponding to that decoded form matchs exactly
+ // - The script corresponding to that decoded form matches exactly
// - The type matches exactly
assert(decoded->ToScript(PARSER_CTX) == script);
assert(decoded->GetType() == node->GetType());