diff --git a/contrib/assets_tutorial/assets_tutorial.py b/contrib/assets_tutorial/assets_tutorial.py index 8e0919768a..3ee3999fbe 100755 --- a/contrib/assets_tutorial/assets_tutorial.py +++ b/contrib/assets_tutorial/assets_tutorial.py @@ -85,7 +85,7 @@ e2.connect_to(e1) # already exist. print ("1c. Creating wallets on all daemons") -# We have configured this regtest chain to start with 21M bitcoins, which are initally +# We have configured this regtest chain to start with 21M bitcoins, which are initially # in a single OP_TRUE output. All Elements wallets recognize OP_TRUE outputs as their # own (this differs from Bitcoin), so the 21M bitcoins are immediately available for # use. This can be disabled by setting `anyonecanspend_aremine=0` in the daemon config. diff --git a/contrib/assets_tutorial/pset_swap_tutorial.py b/contrib/assets_tutorial/pset_swap_tutorial.py index 3f40270bbd..f990648f33 100755 --- a/contrib/assets_tutorial/pset_swap_tutorial.py +++ b/contrib/assets_tutorial/pset_swap_tutorial.py @@ -13,7 +13,7 @@ from decimal import Decimal # ten thousand BTC and Carol has 1000 of a new asset. After the swap, Alice # will have the new asset and Carol will have the BTC. # -# This script can be executed in a Python intepreter. The user is encouraged +# This script can be executed in a Python interpreter. The user is encouraged # to add tracing or debugging code throughout to better understand what is # going on. # diff --git a/doc/build-osx.md b/doc/build-osx.md index 5e9a454975..8f9f1132aa 100644 --- a/doc/build-osx.md +++ b/doc/build-osx.md @@ -53,7 +53,7 @@ macOS comes with a built-in Terminal located in: ### 1. Xcode Command Line Tools The Xcode Command Line Tools are a collection of build tools for macOS. -These tools must be installed in order to build Elemens Core from source. +These tools must be installed in order to build Elements Core from source. To install, run the following command from your terminal: diff --git a/doc/pset.mediawiki b/doc/pset.mediawiki index bc04590e06..8b64b9c9d1 100644 --- a/doc/pset.mediawiki +++ b/doc/pset.mediawiki @@ -66,7 +66,7 @@ The currently defined elements global proprietary types are as follows: | 2 |} -The currently defined elements per-input proprietary types are as folows: +The currently defined elements per-input proprietary types are as follows: {| ! Name @@ -441,7 +441,7 @@ A single entity is likely to be a Creator, Updater, and Blinder. ===Signer=== -In addition to the BIP 370 PSBT Signer behavior, PSET specifies some addtional constraints. +In addition to the BIP 370 PSBT Signer behavior, PSET specifies some additional constraints. Before signing, the Signer must check whether blinding is complete. If any output contains a blinding pubkey but no commitments or proofs, then it must not sign. ===Combiner=== diff --git a/src/blind.cpp b/src/blind.cpp index 90768edc56..b8567bc5cf 100644 --- a/src/blind.cpp +++ b/src/blind.cpp @@ -204,7 +204,7 @@ bool SurjectOutput(CTxOutWitness& txoutwit, const std::vector SECP256K1_SURJECTIONPROOF_MAX_N_INPUTS) { - // We must return false here to avoid triggering an assertation within + // We must return false here to avoid triggering an assertion within // secp256k1_surjectionproof_initialize on the next line. return false; } diff --git a/src/block_proof.cpp b/src/block_proof.cpp index 28e9e98dca..1478e2246e 100644 --- a/src/block_proof.cpp +++ b/src/block_proof.cpp @@ -35,7 +35,7 @@ static bool CheckProofGeneric(const CBlockHeader& block, const uint32_t max_bloc // Some anti-DoS flags, though max_block_signature_size caps the possible // danger in malleation of the block witness data. - unsigned int proof_flags = SCRIPT_VERIFY_P2SH // For cleanstack evalution under segwit flag + unsigned int proof_flags = SCRIPT_VERIFY_P2SH // For cleanstack evaluation under segwit flag | SCRIPT_VERIFY_STRICTENC // Minimally-sized DER sigs | SCRIPT_VERIFY_NULLDUMMY // No extra data stuffed into OP_CMS witness | SCRIPT_VERIFY_CLEANSTACK // No extra pushes leftover in witness diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 066a6726aa..1cfa9820cc 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -112,7 +112,7 @@ public: consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay - // DynaFed: never activate (but set to avoid use of unitialized memory in tests) + // DynaFed: never activate (but set to avoid use of uninitialized memory in tests) consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].bit = 25; consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; @@ -401,7 +401,7 @@ public: consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay - // DynaFed: never activate (but set to avoid use of unitialized memory in tests) + // DynaFed: never activate (but set to avoid use of uninitialized memory in tests) consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].bit = 25; consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; @@ -491,7 +491,7 @@ public: consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay - // DynaFed: never activate (but set to avoid use of unitialized memory in tests) + // DynaFed: never activate (but set to avoid use of uninitialized memory in tests) consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].bit = 25; consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE; consensus.vDeployments[Consensus::DEPLOYMENT_DYNA_FED].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT; diff --git a/src/dynafed.cpp b/src/dynafed.cpp index 89aef88b57..be123c5d43 100644 --- a/src/dynafed.cpp +++ b/src/dynafed.cpp @@ -18,7 +18,7 @@ bool NextBlockIsParameterTransition(const CBlockIndex* pindexPrev, const Consens const DynaFedParamEntry& proposal = p_epoch_walk->dynafed_params.m_proposed; const uint256 proposal_root = proposal.CalculateRoot(); vote_tally[proposal_root]++; - // Short-circuit once 4/5 threshhold is reached + // Short-circuit once 4/5 threshold is reached if (!proposal_root.IsNull() && vote_tally[proposal_root] >= (consensus.dynamic_epoch_length*4)/5) { winning_entry = proposal; diff --git a/src/primitives/pak.cpp b/src/primitives/pak.cpp index 07f8449d97..308af50264 100644 --- a/src/primitives/pak.cpp +++ b/src/primitives/pak.cpp @@ -8,16 +8,6 @@ // ELEMENTS -// PAK entries loaded by config file entries -// These will be embedded into coinbase transaction -// during block creation and tested against during -// testproposedblock -boost::optional g_paklist_config; -// PAK entries loaded from latest coinbase pak commitment -CPAKList g_paklist_blockchain; - - /////////// - namespace { static secp256k1_context *secp256k1_ctx_pak; diff --git a/src/primitives/pak.h b/src/primitives/pak.h index 1026bb0675..ba84075768 100644 --- a/src/primitives/pak.h +++ b/src/primitives/pak.h @@ -7,7 +7,6 @@ #include