diff --git a/contrib/rpm/README.md b/contrib/rpm/README.md
--- a/contrib/rpm/README.md
+++ b/contrib/rpm/README.md
@@ -181,5 +181,5 @@
As far as minor differences, I generally prefer to assign the file permissions
in the `%files` portion of an RPM spec file rather than specifying the
-permissions of a file during `%install` and other minor things like that that
+permissions of a file during `%install` and other minor things like that
are largely just cosmetic.
diff --git a/contrib/rpm/bitcoin.if b/contrib/rpm/bitcoin.if
--- a/contrib/rpm/bitcoin.if
+++ b/contrib/rpm/bitcoin.if
@@ -121,7 +121,7 @@
########################################
##
## All of the rules required to administrate
-## an bitcoin environment
+## a bitcoin environment
##
##
##
diff --git a/doc/developer-notes.md b/doc/developer-notes.md
--- a/doc/developer-notes.md
+++ b/doc/developer-notes.md
@@ -371,7 +371,7 @@
- Assertions should not have side-effects
- - *Rationale*: Even though the source code is set to to refuse to compile
+ - *Rationale*: Even though the source code is set to refuse to compile
with assertions disabled, having side-effects in assertions is unexpected and
makes the code harder to understand
diff --git a/src/chain.cpp b/src/chain.cpp
--- a/src/chain.cpp
+++ b/src/chain.cpp
@@ -138,7 +138,7 @@
return 0;
}
// We need to compute 2**256 / (bnTarget+1), but we can't represent 2**256
- // as it's too large for a arith_uint256. However, as 2**256 is at least as
+ // as it's too large for an arith_uint256. However, as 2**256 is at least as
// large as bnTarget+1, it is equal to ((2**256 - bnTarget - 1) /
// (bnTarget+1)) + 1, or ~bnTarget / (nTarget+1) + 1.
return (~bnTarget / (bnTarget + 1)) + 1;
diff --git a/src/cuckoocache.h b/src/cuckoocache.h
--- a/src/cuckoocache.h
+++ b/src/cuckoocache.h
@@ -175,16 +175,16 @@
mutable std::vector epoch_flags;
/**
- * epoch_heuristic_counter is used to determine when a epoch might be aged &
- * an expensive scan should be done. epoch_heuristic_counter is decremented
- * on insert and reset to the new number of inserts which would cause the
- * epoch to reach epoch_size when it reaches zero.
+ * epoch_heuristic_counter is used to determine when an epoch might be aged
+ * & an expensive scan should be done. epoch_heuristic_counter is
+ * decremented on insert and reset to the new number of inserts which would
+ * cause the epoch to reach epoch_size when it reaches zero.
*/
uint32_t epoch_heuristic_counter;
/**
* epoch_size is set to be the number of elements supposed to be in a epoch.
- * When the number of non-erased elements in a epoch exceeds epoch_size, a
+ * When the number of non-erased elements in an epoch exceeds epoch_size, a
* new epoch should be started and all current entries demoted. epoch_size
* is set to be 45% of size because we want to keep load around 90%, and we
* support 3 epochs at once -- one "dead" which has been erased, one "dying"
diff --git a/src/httpserver.h b/src/httpserver.h
--- a/src/httpserver.h
+++ b/src/httpserver.h
@@ -88,7 +88,7 @@
/**
* Get the request header specified by hdr, or an empty string.
- * Return an pair (isPresent,string).
+ * Return a pair (isPresent,string).
*/
std::pair GetHeader(const std::string &hdr);
@@ -128,7 +128,7 @@
};
/**
- * Event class. This can be used either as an cross-thread trigger or as a
+ * Event class. This can be used either as a cross-thread trigger or as a
* timer.
*/
class HTTPEvent {
diff --git a/src/leveldb/db/version_set.h b/src/leveldb/db/version_set.h
--- a/src/leveldb/db/version_set.h
+++ b/src/leveldb/db/version_set.h
@@ -376,7 +376,7 @@
// Each compaction reads inputs from "level_" and "level_+1"
std::vector inputs_[2]; // The two sets of inputs
- // State used to check for number of of overlapping grandparent files
+ // State used to check for number of overlapping grandparent files
// (parent == level_ + 1, grandparent == level_ + 2)
std::vector grandparents_;
size_t grandparent_index_; // Index in grandparent_starts_
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -220,7 +220,7 @@
}
// if we are in-sync, update the UI regardless of last update time
if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
- // pass a async signal to the UI thread
+ // pass an async signal to the UI thread
QMetaObject::invokeMethod(
clientmodel, "numBlocksChanged", Qt::QueuedConnection,
Q_ARG(int, height),
diff --git a/src/qt/forms/optionsdialog.ui b/src/qt/forms/optionsdialog.ui
--- a/src/qt/forms/optionsdialog.ui
+++ b/src/qt/forms/optionsdialog.ui
@@ -315,7 +315,7 @@
false
- Shows, if the supplied default SOCKS5 proxy is used to reach peers via this network type.
+ Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.
@@ -338,7 +338,7 @@
false
- Shows, if the supplied default SOCKS5 proxy is used to reach peers via this network type.
+ Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.
@@ -361,7 +361,7 @@
false
- Shows, if the supplied default SOCKS5 proxy is used to reach peers via this network type.
+ Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.
diff --git a/src/qt/modaloverlay.cpp b/src/qt/modaloverlay.cpp
--- a/src/qt/modaloverlay.cpp
+++ b/src/qt/modaloverlay.cpp
@@ -120,7 +120,7 @@
return;
// estimate the number of headers left based on nPowTargetSpacing
- // and check if the gui is not aware of the the best header (happens rarely)
+ // and check if the gui is not aware of the best header (happens rarely)
int estimateNumHeadersLeft = bestHeaderDate.secsTo(currentDate) /
Params().GetConsensus().nPowTargetSpacing;
bool hasBestHeader = bestHeaderHeight >= count;
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -856,7 +856,7 @@
void RPCConsole::setFontSize(int newSize) {
QSettings settings;
- // don't allow a insane font size
+ // don't allow an insane font size
if (newSize < FONT_RANGE.width() || newSize > FONT_RANGE.height()) return;
// temp. store the console content
@@ -935,7 +935,7 @@
"
" +
tr("WARNING: Scammers have been active, telling users to type "
"commands here, stealing their wallet contents. Do not use "
- "this console without fully understanding the ramification "
+ "this console without fully understanding the ramifications "
"of a command.") +
""),
true);
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -256,7 +256,7 @@
ssTx << newTx->get();
transaction_array.append(&(ssTx[0]), ssTx.size());
- // Add addresses / update labels that we've sent to to the address book, and
+ // Add addresses / update labels that we've sent to the address book, and
// emit coinsSent signal for each recipient
for (const SendCoinsRecipient &rcp : transaction.getRecipients()) {
// Don't touch the address book when we have a payment request
diff --git a/src/rest.cpp b/src/rest.cpp
--- a/src/rest.cpp
+++ b/src/rest.cpp
@@ -468,7 +468,7 @@
boost::split(uriParts, strUriParams, boost::is_any_of("/"));
}
- // throw exception in case of a empty request
+ // throw exception in case of an empty request
std::string strRequestMutable = req->ReadBody();
if (strRequestMutable.length() == 0 && uriParts.size() == 0) {
return RESTERR(req, HTTP_BAD_REQUEST, "Error: empty request");
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -81,7 +81,7 @@
"[\n"
" {\n"
" \"id\": n, (numeric) Peer index\n"
- " \"addr\":\"host:port\", (string) The ip address and port "
+ " \"addr\":\"host:port\", (string) The IP address and port "
"of the peer\n"
" \"addrbind\":\"ip:port\", (string) Bind address of the "
"connection to the peer\n"
@@ -242,7 +242,7 @@
strCommand != "remove")) {
throw std::runtime_error(
"addnode \"node\" \"add|remove|onetry\"\n"
- "\nAttempts add or remove a node from the addnode list.\n"
+ "\nAttempts to add or remove a node from the addnode list.\n"
"Or try a connection to a node once.\n"
"Nodes added using addnode (or -connect) are protected from DoS "
"disconnection and are not required to be\n"
@@ -357,7 +357,7 @@
"\nResult:\n"
"[\n"
" {\n"
- " \"addednode\" : \"192.168.0.201\", (string) The node ip "
+ " \"addednode\" : \"192.168.0.201\", (string) The node IP "
"address or name (as provided to addnode)\n"
" \"connected\" : true|false, (boolean) If connected\n"
" \"addresses\" : [ (list of objects) Only "
@@ -618,19 +618,20 @@
(strCommand != "add" && strCommand != "remove")) {
throw std::runtime_error(
"setban \"subnet\" \"add|remove\" (bantime) (absolute)\n"
- "\nAttempts add or remove a IP/Subnet from the banned list.\n"
+ "\nAttempts to add or remove a IP/Subnet from the banned list.\n"
"\nArguments:\n"
"1. \"subnet\" (string, required) The IP/Subnet (see "
- "getpeerinfo for nodes ip) with a optional netmask (default is /32 "
- "= single ip)\n"
- "2. \"command\" (string, required) 'add' to add a IP/Subnet "
- "to the list, 'remove' to remove a IP/Subnet from the list\n"
+ "getpeerinfo for nodes IP) with an optional netmask (default is "
+ "/32 "
+ "= single IP)\n"
+ "2. \"command\" (string, required) 'add' to add an IP/Subnet "
+ "to the list, 'remove' to remove an IP/Subnet from the list\n"
"3. \"bantime\" (numeric, optional) time in seconds how long "
- "(or until when if [absolute] is set) the ip is banned (0 or empty "
+ "(or until when if [absolute] is set) the IP is banned (0 or empty "
"means using the default time of 24h which can also be overwritten "
"by the -bantime startup argument)\n"
"4. \"absolute\" (boolean, optional) If set, the bantime must "
- "be a absolute timestamp in seconds since epoch (Jan 1 1970 GMT)\n"
+ "be an absolute timestamp in seconds since epoch (Jan 1 1970 GMT)\n"
"\nExamples:\n" +
HelpExampleCli("setban", "\"192.168.0.6\" \"add\" 86400") +
HelpExampleCli("setban", "\"192.168.0.0/24\" \"add\"") +
diff --git a/src/test/arith_uint256_tests.cpp b/src/test/arith_uint256_tests.cpp
--- a/src/test/arith_uint256_tests.cpp
+++ b/src/test/arith_uint256_tests.cpp
@@ -247,7 +247,7 @@
}
// Check if doing _A_ _OP_ _B_ results in the same as applying _OP_ onto each
-// element of Aarray and Barray, and then converting the result into a
+// element of Aarray and Barray, and then converting the result into an
// arith_uint256.
#define CHECKBITWISEOPERATOR(_A_, _B_, _OP_) \
for (unsigned int i = 0; i < 32; ++i) { \
diff --git a/src/test/data/script_tests.json b/src/test/data/script_tests.json
--- a/src/test/data/script_tests.json
+++ b/src/test/data/script_tests.json
@@ -3410,7 +3410,7 @@
],
["CHECKSEQUENCEVERIFY tests"],
-["", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY", "INVALID_STACK_OPERATION", "CSV automatically fails on a empty stack"],
+["", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY", "INVALID_STACK_OPERATION", "CSV automatically fails on an empty stack"],
["-1", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY", "NEGATIVE_LOCKTIME", "CSV automatically fails if stack top is negative"],
["0x0100", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY,MINIMALDATA", "UNKNOWN_ERROR", "CSV fails if stack top is not minimally encoded"],
["0", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY", "UNSATISFIED_LOCKTIME", "CSV fails if stack top bit 1 << 31 is set and the tx version < 2"],
diff --git a/src/test/data/tx_valid.json b/src/test/data/tx_valid.json
--- a/src/test/data/tx_valid.json
+++ b/src/test/data/tx_valid.json
@@ -174,7 +174,7 @@
[[["5a6b0021a6042a686b6b94abc36b387bef9109847774e8b1e51eb8cc55c53921", 1, "DUP HASH160 0x14 0xee5a6aa40facefb2655ac23c0c28c57c65c41f9b EQUALVERIFY CHECKSIG"]],
"01000000012139c555ccb81ee5b1e87477840991ef7b386bc3ab946b6b682a04a621006b5a01000000fdb40148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390121038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f2204148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a5800390175ac4830450220646b72c35beeec51f4d5bc1cbae01863825750d7f490864af354e6ea4f625e9c022100f04b98432df3a9641719dbced53393022e7249fb59db993af1118539830aab870148304502201723e692e5f409a7151db386291b63524c5eb2030df652b1f53022fd8207349f022100b90d9bbf2f3366ce176e5e780a00433da67d9e5c79312c6388312a296a580039017521038479a0fa998cd35259a2ef0a7a5c68662c1474f88ccb6d08a7677bbec7f22041ffffffff010000000000000000016a00000000", "P2SH"],
-["Finally CHECKMULTISIG removes all signatures prior to hashing the script containing those signatures. In conjunction with the SIGHASH_SINGLE bug this lets us test whether or not FindAndDelete() is actually present in scriptPubKey/redeemScript evaluation by including a signature of the digest 0x01 We can compute in advance for our pubkey, embed it it in the scriptPubKey, and then also using a normal SIGHASH_ALL signature. If FindAndDelete() wasn't run, the 'bugged' signature would still be in the hashed script, and the normal signature would fail."],
+["Finally CHECKMULTISIG removes all signatures prior to hashing the script containing those signatures. In conjunction with the SIGHASH_SINGLE bug this lets us test whether or not FindAndDelete() is actually present in scriptPubKey/redeemScript evaluation by including a signature of the digest 0x01 We can compute in advance for our pubkey, embed it in the scriptPubKey, and then also using a normal SIGHASH_ALL signature. If FindAndDelete() wasn't run, the 'bugged' signature would still be in the hashed script, and the normal signature would fail."],
["Here's an example on mainnet within a P2SH redeemScript. Remarkably it's a standard transaction in <0.9"],
[[["b5b598de91787439afd5938116654e0b16b7a0d0f82742ba37564219c5afcbf9", 0, "DUP HASH160 0x14 0xf6f365c40f0739b61de827a44751e5e99032ed8f EQUALVERIFY CHECKSIG"],
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp
--- a/src/torcontrol.cpp
+++ b/src/torcontrol.cpp
@@ -394,7 +394,7 @@
/**
* Controller that connects to Tor control socket, authenticate, then create
- * and maintain a ephemeral hidden service.
+ * and maintain an ephemeral hidden service.
*/
class TorController {
public:
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -150,7 +150,7 @@
std::set setAlreadyIncluded(txidsToUpdate.begin(),
txidsToUpdate.end());
- // Iterate in reverse, so that whenever we are looking at at a transaction
+ // Iterate in reverse, so that whenever we are looking at a transaction
// we are sure that all in-mempool descendants have already been processed.
// This maximizes the benefit of the descendant cache and guarantees that
// setMemPoolChildren will be updated, an assumption made in
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp
--- a/src/utilstrencodings.cpp
+++ b/src/utilstrencodings.cpp
@@ -489,10 +489,10 @@
if (out) {
*out = (int32_t)n;
}
- // Note that strtol returns a *long int*, so even if strtol doesn't report a
- // over/underflow we still have to check that the returned value is within
- // the range of an *int32_t*. On 64-bit platforms the size of these types
- // may be different.
+ // Note that strtol returns a *long int*, so even if strtol doesn't report
+ // an over/underflow we still have to check that the returned value is
+ // within the range of an *int32_t*. On 64-bit platforms the size of these
+ // types may be different.
return endp && *endp == 0 && !errno &&
n >= std::numeric_limits::min() &&
n <= std::numeric_limits::max();
@@ -510,8 +510,8 @@
*out = (int64_t)n;
}
// Note that strtoll returns a *long long int*, so even if strtol doesn't
- // report a over/underflow we still have to check that the returned value is
- // within the range of an *int64_t*.
+ // report an over/underflow we still have to check that the returned value
+ // is within the range of an *int64_t*.
return endp && *endp == 0 && !errno &&
n >= std::numeric_limits::min() &&
n <= std::numeric_limits::max();
@@ -534,9 +534,9 @@
*out = (uint32_t)n;
}
// Note that strtoul returns a *unsigned long int*, so even if it doesn't
- // report a over/underflow we still have to check that the returned value is
- // within the range of an *uint32_t*. On 64-bit platforms the size of these
- // types may be different.
+ // report an over/underflow we still have to check that the returned value
+ // is within the range of an *uint32_t*. On 64-bit platforms the size of
+ // these types may be different.
return endp && *endp == 0 && !errno &&
n <= std::numeric_limits::max();
}
@@ -558,7 +558,7 @@
*out = (uint64_t)n;
}
// Note that strtoull returns a *unsigned long long int*, so even if it
- // doesn't report a over/underflow we still have to check that the returned
+ // doesn't report an over/underflow we still have to check that the returned
// value is within the range of an *uint64_t*.
return endp && *endp == 0 && !errno &&
n <= std::numeric_limits::max();
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -1313,7 +1313,7 @@
" \"redeemscript\": \"