Skip to content

Commit

Permalink
chore: remove redundant words
Browse files Browse the repository at this point in the history
Signed-off-by: tianzedavid <[email protected]>
  • Loading branch information
tianzedavid committed Feb 12, 2025
1 parent e41b225 commit 321e877
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ added to and removed (spent) from the cache when we connect a new block.
(`chainstate.CoinsTip()`). For example, the RPCs `generateblock` and
`getblocktemplate` call `TestBlockValidity()`, which applies the UTXO set
changes to a temporary cache. Similarly, mempool consistency checks, which are
frequent on regtest, also apply the the UTXO set changes to a temporary cache.
frequent on regtest, also apply the UTXO set changes to a temporary cache.
Changes to the _main_ UTXO cache and to temporary caches trigger the tracepoints.
We can't tell if a temporary cache or the _main_ cache was changed.

Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1/include/secp256k1_ellswift.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern "C" {
*
* If the Y coordinate is relevant, it is given the same parity as t.
*
* Changes w.r.t. the the paper:
* Changes w.r.t. the paper:
* - The u=0, t=0, and u^3+t^2+7=0 conditions result in decoding to the point
* at infinity in the paper. Here they are remapped to finite points.
* - The paper uses an additional encoding bit for the parity of y. Here the
Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1/src/modules/bppp/bppp_norm_product_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int secp256k1_bppp_rangeproof_norm_product_prove(
secp256k1_bppp_serialize_points(&proof[proof_idx], &x_ge, &r_ge);
proof_idx += 65;

/* Obtain challenge gamma for the the next round */
/* Obtain challenge gamma for the next round */
secp256k1_sha256_write(transcript, &proof[proof_idx - 65], 65);
secp256k1_bppp_challenge_scalar(&gamma, transcript, 0);

Expand Down
2 changes: 1 addition & 1 deletion src/simplicity/dag.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static inline size_t numChildren(tag_t tag) {
*/
sha256_midstate simplicity_computeWordCMR(const bitstring* value, size_t n);

/* A node the the DAG of a Simplicity expression.
/* A node the DAG of a Simplicity expression.
* It consists of a 'tag' indicating the kind of expression the node represents.
* The contents of a node depend on the kind of the expressions.
* The node may have references to children, when it is a combinator kind of expression.
Expand Down
2 changes: 1 addition & 1 deletion src/simplicity/primitive/elements/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ extern transaction* simplicity_elements_mallocTransaction(const rawTransaction*
for (size_t i = 0; i < numFees; ++i) {
static_assert(0 == offsetof(sigOutput, asset.data), "asset ID is not first field of sigOutput.");
/* The uintptr_t cast is to suppress warning about both casting away const and a change in pointer alignment.
* Each pointer in perm is pointing the the first field of some (non-const) sigOutput*, so this cast is safe.
* Each pointer in perm is pointing the first field of some (non-const) sigOutput*, so this cast is safe.
*/
feeOutputs[i] = (sigOutput*)(uintptr_t)(perm[i]);
}
Expand Down
4 changes: 2 additions & 2 deletions test/lint/lint-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def check_all_filenames() -> int:
for filename in filenames:
if not filename_regex.match(filename):
print(
f"""File {repr(filename)} does not not match the allowed filename regexp ('{ALLOWED_FILENAME_REGEXP}')."""
f"""File {repr(filename)} does not match the allowed filename regexp ('{ALLOWED_FILENAME_REGEXP}')."""
)
failed_tests += 1
return failed_tests
Expand All @@ -98,7 +98,7 @@ def check_source_filenames() -> int:
for filename in filenames:
if not filename_regex.match(filename) and not filename_exception_regex.match(filename):
print(
f"""File {repr(filename)} does not not match the allowed source filename regexp ('{ALLOWED_SOURCE_FILENAME_REGEXP}'), or the exception regexp ({ALLOWED_SOURCE_FILENAME_EXCEPTION_REGEXP})."""
f"""File {repr(filename)} does not match the allowed source filename regexp ('{ALLOWED_SOURCE_FILENAME_REGEXP}'), or the exception regexp ({ALLOWED_SOURCE_FILENAME_EXCEPTION_REGEXP})."""
)
failed_tests += 1
return failed_tests
Expand Down

0 comments on commit 321e877

Please sign in to comment.