Skip to content

Commit

Permalink
Fix a bunch of spelling errors
Browse files Browse the repository at this point in the history
Summary: As per title.

Test Plan:
  make check
  ./test/functional/test_runner.py

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3216
  • Loading branch information
Fabcien committed Jun 6, 2019
1 parent 9db35c6 commit 23a9331
Show file tree
Hide file tree
Showing 30 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ as the Diff number, reviewers, etc.).

- When reviewers approve your Diff, it should be listed as "ready to Land"
in Phabricator. When you want to commit your diff to the repository, check out
type my-topic-branch in git, then type `arc land`. You have now succesfully
type my-topic-branch in git, then type `arc land`. You have now successfully
committed a change to the Bitcoin ABC repository.

- When reviewing a Diff, apply the changeset on your local by using
Expand Down
2 changes: 1 addition & 1 deletion arcanist/linter/CheckDocLinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function getMandatoryFlags() {

protected function parseLinterOutput($path, $err, $stdout, $stderr) {
/* Split stdout:
* 0 => Empty (before first 'Args' occurence)
* 0 => Empty (before first 'Args' occurrence)
* 1 => Args used: count
* 2 => Args documented: count
* 3 => Args undocumented: count and list
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/FindBerkeleyDB.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Try to find the BerkeleyDB librairies
# Try to find the BerkeleyDB libraries
# BDB_FOUND - system has Berkeley DB lib
# BDB_INCLUDE_DIR - the Berkeley DB include directory
# BDB_LIBRARY - Library needed to use Berkeley DB
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/FindGMP.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Try to find the GMP librairies
# Try to find the GMP libraries
# GMP_FOUND - system has GMP lib
# GMP_INCLUDE_DIR - the GMP include directory
# GMP_LIBRARY - Library needed to use GMP
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/FindZeroMQ.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Try to find the ZeroMQ librairies
# Try to find the ZeroMQ libraries
# ZMQ_FOUND - system has ZeroMQ lib
# ZMQ_INCLUDE_DIR - the ZeroMQ include directory
# ZMQ_LIBRARY - Libraries needed to use ZeroMQ
Expand Down
2 changes: 1 addition & 1 deletion cmake/platforms/OSX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.8)
# set 1st to dir with the cross compiler's C/C++ headers/libs
set(CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/depends/${TOOLCHAIN_PREFIX};${OSX_SDK_PATH}")

# We also may have built dependancies for the native plateform.
# We also may have built dependencies for the native plateform.
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/depends/${TOOLCHAIN_PREFIX}/native")

# modify default behavior of FIND_XXX() commands to
Expand Down
2 changes: 1 addition & 1 deletion cmake/platforms/Win32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
# set 1st to dir with the cross compiler's C/C++ headers/libs
set(CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/depends/${TOOLCHAIN_PREFIX};/usr/${TOOLCHAIN_PREFIX}")

# We also may have built dependancies for the native plateform.
# We also may have built dependencies for the native plateform.
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/depends/${TOOLCHAIN_PREFIX}/native")

# modify default behavior of FIND_XXX() commands to
Expand Down
2 changes: 1 addition & 1 deletion cmake/platforms/Win64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
# set 1st to dir with the cross compiler's C/C++ headers/libs
set(CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/depends/${TOOLCHAIN_PREFIX};/usr/${TOOLCHAIN_PREFIX}")

# We also may have built dependancies for the native plateform.
# We also may have built dependencies for the native plateform.
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/depends/${TOOLCHAIN_PREFIX}/native")

# modify default behavior of FIND_XXX() commands to
Expand Down
2 changes: 1 addition & 1 deletion contrib/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ bitcoin (0.5.0~rc1-natty1) natty; urgency=low

* Add test_bitcoin to build test
* Fix clean
* Remove unnecessary build-dependancies
* Remove unnecessary build-dependencies

-- Matt Corallo <matt@bluematt.me> Wed, 26 Oct 2011 14:37:18 -0400

Expand Down
2 changes: 1 addition & 1 deletion contrib/debian/examples/bitcoin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
#rpcuser=Ulysseys
#rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593
#
# The second method `rpcauth` can be added to server startup argument. It is set at intialization time
# The second method `rpcauth` can be added to server startup argument. It is set at initialization time
# using the output from the script in share/rpcuser/rpcuser.py after providing a username:
#
# ./share/rpcuser/rpcuser.py alice
Expand Down
4 changes: 2 additions & 2 deletions doc/abc/uahf-technical-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ form of the transaction digest algorithm specified in BIP143.

RATIONALE: see Motivation section of BIP143 [2].

NOTE 1: refer to [3] for the specificaton of the revised transaction
NOTE 1: refer to [3] for the specification of the revised transaction
digest based on BIP143. Revisions were made to account for non-Segwit
deployment.

Expand Down Expand Up @@ -273,7 +273,7 @@ as "CASH" in user interfaces of some Bitcoin clients (BU, ABC).

[2] https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#Motivation

[3] [Digest for replay protected signature verification accross hard forks](replay-protected-sighash.md)
[3] [Digest for replay protected signature verification across hard forks](replay-protected-sighash.md)

[4] https://github.com/Bitcoin-UAHF/spec/blob/master/uahf-test-plan.md

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ add_subdirectory(secp256k1)
add_subdirectory(univalue)

# Because the Bitcoin ABc source code is disorganised, we
# end up with a bunch of libraries without any aparent
# end up with a bunch of libraries without any apparent
# cohesive structure. This is inherited from Bitcoin Core
# and reflecting this.
# TODO: Improve the structure once cmake is rocking.
Expand Down
2 changes: 1 addition & 1 deletion src/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(CheckIncludeFiles)
include(CheckSymbolExists)
include(CheckCXXSourceCompiles)

# Package informations
# Package information
set(PACKAGE_NAME "Bitcoin ABC")

# Version
Expand Down
2 changes: 1 addition & 1 deletion src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ std::string ScriptToAsmStr(const CScript &script,
uint32_t flags = SCRIPT_VERIFY_STRICTENC;
if (vch.back() & SIGHASH_FORKID) {
// If the transaction is using SIGHASH_FORKID, we need
// to set the apropriate flag.
// to set the appropriate flag.
// TODO: Remove after the Hard Fork.
flags |= SCRIPT_ENABLE_SIGHASH_FORKID;
}
Expand Down
4 changes: 2 additions & 2 deletions src/rcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static constexpr int RCU_ACTIVE_LOOP_COUNT = 10;
* ^
* Nadded -|
*
* After a succesful deletion, threadInfos now points to NChild and the CAS to
* After a successful deletion, threadInfos now points to NChild and the CAS to
* move it to Nadded will fail, causing the insertion process to fail.
*
* We also run into problems when several nodes are deleted concurrently.
Expand Down Expand Up @@ -181,7 +181,7 @@ void RCUInfos::synchronize() {
// system. Let's make sure threads that land here proceed one by one.
// XXX: The best option long term is most likely to use a futex on one of
// the thread causing synchronization delay so this thread can be waked up
// at an apropriate time.
// at an appropriate time.
static std::condition_variable cond;
static Mutex cs;
WAIT_LOCK(cs, lock);
Expand Down
2 changes: 1 addition & 1 deletion src/rcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ template <typename T> class RCUPtr {
}

/**
* Construct a new RCUPtr without transfering owership.
* Construct a new RCUPtr without transferring owership.
*/
static RCUPtr copy(T *ptr) {
if (ptr != nullptr) {
Expand Down
2 changes: 1 addition & 1 deletion src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ bool EvalScript(std::vector<valtype> &stack, const CScript &script,

const valtype &data = stacktop(-2);

// Make sure the split point is apropriate.
// Make sure the split point is appropriate.
uint64_t position =
CScriptNum(stacktop(-1), fRequireMinimal).getint();
if (position > data.size()) {
Expand Down
2 changes: 1 addition & 1 deletion src/script/interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class TransactionSignatureChecker : public BaseSignatureChecker {
const PrecomputedTransactionData &txdataIn)
: txTo(txToIn), nIn(nInIn), amount(amountIn), txdata(&txdataIn) {}

// The overriden functions are now final.
// The overridden functions are now final.
bool CheckSig(const std::vector<uint8_t> &vchSigIn,
const std::vector<uint8_t> &vchPubKey,
const CScript &scriptCode,
Expand Down
2 changes: 1 addition & 1 deletion src/seeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ USAGE
-----

Assuming you want to run a dns seed on dnsseed.example.com, you will
need an authorative NS record in example.com's domain record, pointing
need an authoritative NS record in example.com's domain record, pointing
to for example vps.example.com:

$ dig -t NS dnsseed.example.com
Expand Down
20 changes: 10 additions & 10 deletions src/test/data/script_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -917,8 +917,8 @@
["0x01 0x00", "BIN2NUM 0 EQUAL", "P2SH,STRICTENC", "OK", "BIN2NUM, non-canonical argument "],
["0x04 0xffffff7f", "BIN2NUM 2147483647 EQUAL", "P2SH,STRICTENC", "OK", "BIN2NUM, maximum size argument "],
["0x04 0xffffffff", "BIN2NUM -2147483647 EQUAL", "P2SH,STRICTENC", "OK", "BIN2NUM, maximum size argument "],
["0x05 0xffffffff00", "BIN2NUM 2147483647 EQUAL", "P2SH,STRICTENC", "INVALID_NUMBER_RANGE", "BIN2NUM, oversized arguement"],
["0x05 0xffffff7f80", "BIN2NUM -2147483647 EQUAL", "P2SH,STRICTENC", "OK", "BIN2NUM, non-canonical maximum size arguement"],
["0x05 0xffffffff00", "BIN2NUM 2147483647 EQUAL", "P2SH,STRICTENC", "INVALID_NUMBER_RANGE", "BIN2NUM, oversized argument"],
["0x05 0xffffff7f80", "BIN2NUM -2147483647 EQUAL", "P2SH,STRICTENC", "OK", "BIN2NUM, non-canonical maximum size argument"],
["0x05 0x0100000000", "BIN2NUM 1 EQUAL", "P2SH,STRICTENC", "OK"],
["0x05 0xFE00000000", "BIN2NUM 254 EQUAL", "P2SH,STRICTENC", "OK"],
["0x05 0x0500000080", "BIN2NUM 0x01 0x85 EQUAL", "P2SH,STRICTENC", "OK"],
Expand Down Expand Up @@ -1083,8 +1083,8 @@
[
"0x09 0x300702010102020001 0",
"0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKDATASIG",
"P2SH,STRICTENC,NULLFAIL",
"SIG_DER", "Non cannonical DER encoding"
"P2SH,STRICTENC,NULLFAIL,CHECKDATASIG",
"SIG_DER", "Non canonical DER encoding"
],

["CHECKDATASIGVERIFY"],
Expand Down Expand Up @@ -1124,8 +1124,8 @@
[
"0x09 0x300702010102020001 0",
"0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKDATASIGVERIFY 1",
"P2SH,STRICTENC,NULLFAIL",
"SIG_DER", "Non cannonical DER encoding"
"P2SH,STRICTENC,NULLFAIL,CHECKDATASIG",
"SIG_DER", "Non canonical DER encoding"
],

["Schnorr flag on: CHECKDATASIG unchanged"],
Expand Down Expand Up @@ -1165,8 +1165,8 @@
[
"0x09 0x300702010102020001 0",
"0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKDATASIG",
"P2SH,STRICTENC,NULLFAIL,SCHNORR",
"SIG_DER", "Non cannonical DER encoding"
"P2SH,STRICTENC,NULLFAIL,CHECKDATASIG,SCHNORR",
"SIG_DER", "Non canonical DER encoding"
],

["Schnorr flag on: CHECKDATASIGVERIFY unchanged"],
Expand Down Expand Up @@ -1206,8 +1206,8 @@
[
"0x09 0x300702010102020001 0",
"0x21 0x038282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508 CHECKDATASIGVERIFY 1",
"P2SH,STRICTENC,NULLFAIL,SCHNORR",
"SIG_DER", "Non cannonical DER encoding"
"P2SH,STRICTENC,NULLFAIL,CHECKDATASIG,SCHNORR",
"SIG_DER", "Non canonical DER encoding"
],

["ADD"],
Expand Down
2 changes: 1 addition & 1 deletion src/test/sighashtype_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ BOOST_AUTO_TEST_CASE(sighash_construction_test) {
BOOST_AUTO_TEST_CASE(sighash_serialization_test) {
std::set<uint32_t> forkValues{0, 1, 0xab1fe9, 0xc81eea, 0xffffff};

// Test all possible sig hash values embeded in signatures.
// Test all possible sig hash values embedded in signatures.
for (uint32_t sigHashType = 0x00; sigHashType <= 0xff; sigHashType++) {
for (uint32_t forkValue : forkValues) {
uint32_t rawType = sigHashType | (forkValue << 8);
Expand Down
2 changes: 1 addition & 1 deletion src/test/util_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ BOOST_AUTO_TEST_CASE(test_LockDirectory) {
// lock.
BOOST_CHECK_EQUAL(LockDirectory(dirname, lockname, true), true);

// Try to acquire the lock in the child process, this should be succesful.
// Try to acquire the lock in the child process, this should be successful.
BOOST_CHECK_EQUAL(write(fd[1], &LockCommand, 1), 1);
BOOST_CHECK_EQUAL(read(fd[1], &ch, 1), 1);
BOOST_CHECK_EQUAL((bool)ch, true);
Expand Down
10 changes: 5 additions & 5 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ CBlockIndex *CChainState::FindMostWorkChain() {
arith_uint256 requiredWork = pindexTip->nChainWork;
switch (pindexTip->nHeight - pindexFork->nHeight) {
// Limit the penality for depth 1, 2 and 3 to half a block
// worth of work to ensure we don't fork accidentaly.
// worth of work to ensure we don't fork accidentally.
case 3:
case 2:
pindexExtraPow = pindexExtraPow->pprev;
Expand Down Expand Up @@ -2974,7 +2974,7 @@ bool CChainState::PreciousBlock(const Config &config, CValidationState &state,
// In case this was parked, unpark it.
UnparkBlock(pindex);

// Make sure it is added to the candidate list if apropriate.
// Make sure it is added to the candidate list if appropriate.
if (pindex->IsValid(BlockValidity::TRANSACTIONS) && pindex->nChainTx) {
setBlockIndexCandidates.insert(pindex);
PruneBlockIndexCandidates();
Expand Down Expand Up @@ -3262,7 +3262,7 @@ bool CChainState::ReceivedBlockTransactions(const CBlock &block,
pindex->nChainTx =
(pindex->pprev ? pindex->pprev->nChainTx : 0) + pindex->nTx;
if (pindex->nSequenceId == 0) {
// We assign a sequence is when transaction are recieved to
// We assign a sequence is when transaction are received to
// prevent a miner from being able to broadcast a block but not
// its content. However, a sequence id may have been set
// manually, for instance via PreciousBlock, in which case, we
Expand Down Expand Up @@ -3409,7 +3409,7 @@ static bool FindUndoPos(CValidationState &state, int nFile, CDiskBlockPos &pos,
* This allows validation of headers on which the PoW hasn't been done.
* For example: to validate template handed to mining software.
* Do not call this for any check that depends on the context.
* For context-dependant calls, see ContextualCheckBlockHeader.
* For context-dependent calls, see ContextualCheckBlockHeader.
*/
static bool CheckBlockHeader(
const Config &config, const CBlockHeader &block, CValidationState &state,
Expand Down Expand Up @@ -3722,7 +3722,7 @@ static bool ContextualCheckBlock(const Config &config, const CBlock &block,
/**
* If the provided block header is valid, add it to the block index.
*
* Returns true if the block is succesfully added to the block index.
* Returns true if the block is successfully added to the block index.
*/
bool CChainState::AcceptBlockHeader(const Config &config,
const CBlockHeader &block,
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/fees.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CTxMemPool;
Amount GetMinimumFee(unsigned int nTxBytes, const CTxMemPool &pool);

/**
* Estimate the minimum fee considering overriden fee rate from coin control
* Estimate the minimum fee considering overridden fee rate from coin control
*/
Amount GetMinimumFee(unsigned int nTxBytes, const CTxMemPool &pool,
const CCoinControl &coinControl);
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,7 @@ bool CWallet::FundTransaction(CMutableTransaction &tx, Amount &nFeeRet,
if (nChangePosInOut != -1) {
tx.vout.insert(tx.vout.begin() + nChangePosInOut,
tx_new->vout[nChangePosInOut]);
// We dont have the normal Create/Commit cycle, and dont want to
// We don't have the normal Create/Commit cycle, and don't want to
// risk reusing change, so just remove the key from the keypool
// here.
if (!IsDeprecatedRPCEnabled(gArgs, "fundrawtransaction")) {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/abc-replay-protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def send_transaction_to_mempool(tx):
update_block(5, replay_txns)
yield accepted()

# Ok, now we check if a reorg work properly accross the activation.
# Ok, now we check if a reorg work properly across the activation.
postforkblockid = node.getbestblockhash()
node.invalidateblock(postforkblockid)
assert(replay_tx0_id in set(node.getrawmempool()))
Expand Down
2 changes: 1 addition & 1 deletion test/functional/abc-schnorr-activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def check_for_ban_on_rejected_tx(tx):
assert schnorr_tx_id not in set(node.getrawmempool())
assert ecdsa_tx_id not in set(node.getrawmempool())

# Ok, now we check if a rewind works properly accross the activation.
# Ok, now we check if a rewind works properly across the activation.
# First, rewind the normal post-fork block.
node.invalidateblock(postforkblock.hash)
# txes popped back into mempool
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_bip68_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def get_csv_status(self):
for sf in softforks:
if sf['id'] == 'csv' and sf['version'] == 5:
return sf['reject']['status']
raise AssertionError('Cannot find CSV fork activation informations')
raise AssertionError('Cannot find CSV fork activation information')

# Make sure that BIP68 isn't being used to validate blocks, prior to
# versionbits activation. If more blocks are mined prior to this test
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_csv_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_csv_status(node):
for sf in softforks:
if sf['id'] == 'csv' and sf['version'] == 5:
return sf['reject']['status']
raise AssertionError('Cannot find CSV fork activation informations')
raise AssertionError('Cannot find CSV fork activation information')


class BIP68_112_113Test(ComparisonTestFramework):
Expand Down
4 changes: 2 additions & 2 deletions test/functional/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def main():
parser.add_argument('--coverage', action='store_true',
help='generate a basic coverage report for the RPC interface')
parser.add_argument(
'--exclude', '-x', help='specify a comma-seperated-list of scripts to exclude. Do not include the .py extension in the name.')
'--exclude', '-x', help='specify a comma-separated-list of scripts to exclude. Do not include the .py extension in the name.')
parser.add_argument('--extended', action='store_true',
help='run the extended test suite in addition to the basic tests')
parser.add_argument('--cutoff', type=int, default=DEFAULT_EXTENDED_CUTOFF,
Expand All @@ -171,7 +171,7 @@ def main():
parser.add_argument('--tmpdirprefix', '-t',
default=tempfile.gettempdir(), help="Root directory for datadirs")
parser.add_argument('--junitouput', '-ju',
default=os.path.join(build_dir, 'junit_results.xml'), help="file that will store JUnit formated test results.")
default=os.path.join(build_dir, 'junit_results.xml'), help="file that will store JUnit formatted test results.")

args, unknown_args = parser.parse_known_args()

Expand Down

0 comments on commit 23a9331

Please sign in to comment.