mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
doc: Fix some misspellings
This commit is contained in:
parent
463eab5e14
commit
ac831339cb
12 changed files with 13 additions and 14 deletions
|
@ -12,7 +12,7 @@ with no central authority: managing transactions and issuing money are carried
|
||||||
out collectively by the network. Bitcoin Core is the name of open source
|
out collectively by the network. Bitcoin Core is the name of open source
|
||||||
software which enables the use of this currency.
|
software which enables the use of this currency.
|
||||||
|
|
||||||
For more information, as well as an immediately useable, binary version of
|
For more information, as well as an immediately usable, binary version of
|
||||||
the Bitcoin Core software, see https://bitcoincore.org/en/download/, or read the
|
the Bitcoin Core software, see https://bitcoincore.org/en/download/, or read the
|
||||||
[original whitepaper](https://bitcoincore.org/bitcoin.pdf).
|
[original whitepaper](https://bitcoincore.org/bitcoin.pdf).
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ chain for " target " development."))
|
||||||
(base-libc glibc-2.27)
|
(base-libc glibc-2.27)
|
||||||
(base-gcc (make-gcc-rpath-link
|
(base-gcc (make-gcc-rpath-link
|
||||||
(make-ssp-fixed-gcc gcc-9))))
|
(make-ssp-fixed-gcc gcc-9))))
|
||||||
"Convienience wrapper around MAKE-CROSS-TOOLCHAIN with default values
|
"Convenience wrapper around MAKE-CROSS-TOOLCHAIN with default values
|
||||||
desirable for building Bitcoin Core release binaries."
|
desirable for building Bitcoin Core release binaries."
|
||||||
(make-cross-toolchain target
|
(make-cross-toolchain target
|
||||||
base-gcc-for-libc
|
base-gcc-for-libc
|
||||||
|
|
|
@ -654,7 +654,7 @@ Strings and formatting
|
||||||
|
|
||||||
- Do not use it to convert to `QString`. Use `QString::fromStdString()`.
|
- Do not use it to convert to `QString`. Use `QString::fromStdString()`.
|
||||||
|
|
||||||
- *Rationale*: Qt has build-in functionality for converting their string
|
- *Rationale*: Qt has built-in functionality for converting their string
|
||||||
type from/to C++. No need to roll your own.
|
type from/to C++. No need to roll your own.
|
||||||
|
|
||||||
- In cases where do you call `.c_str()`, you might want to additionally check that the string does not contain embedded '\0' characters, because
|
- In cases where do you call `.c_str()`, you might want to additionally check that the string does not contain embedded '\0' characters, because
|
||||||
|
|
|
@ -605,7 +605,7 @@ static void LogConnectFailure(bool manual_connection, const char* fmt, const Arg
|
||||||
* @param nTimeout Wait this many milliseconds for the connection to be
|
* @param nTimeout Wait this many milliseconds for the connection to be
|
||||||
* established.
|
* established.
|
||||||
* @param manual_connection Whether or not the connection was manually requested
|
* @param manual_connection Whether or not the connection was manually requested
|
||||||
* (e.g. thru the addnode RPC)
|
* (e.g. through the addnode RPC)
|
||||||
*
|
*
|
||||||
* @returns Whether or not a connection was successfully made.
|
* @returns Whether or not a connection was successfully made.
|
||||||
*/
|
*/
|
||||||
|
@ -709,7 +709,7 @@ bool GetProxy(enum Network net, proxyType &proxyInfoOut) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the name proxy to use for all connections to nodes specified by a
|
* Set the name proxy to use for all connections to nodes specified by a
|
||||||
* hostname. After setting this proxy, connecting to a node sepcified by a
|
* hostname. After setting this proxy, connecting to a node specified by a
|
||||||
* hostname won't result in a local lookup of said hostname, rather, connect to
|
* hostname won't result in a local lookup of said hostname, rather, connect to
|
||||||
* the node by asking the name proxy for a proxy connection to the hostname,
|
* the node by asking the name proxy for a proxy connection to the hostname,
|
||||||
* effectively delegating the hostname lookup to the specified proxy.
|
* effectively delegating the hostname lookup to the specified proxy.
|
||||||
|
|
|
@ -31,7 +31,7 @@ TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef t
|
||||||
CCoinsViewCache &view = ::ChainstateActive().CoinsTip();
|
CCoinsViewCache &view = ::ChainstateActive().CoinsTip();
|
||||||
for (size_t o = 0; o < tx->vout.size(); o++) {
|
for (size_t o = 0; o < tx->vout.size(); o++) {
|
||||||
const Coin& existingCoin = view.AccessCoin(COutPoint(hashTx, o));
|
const Coin& existingCoin = view.AccessCoin(COutPoint(hashTx, o));
|
||||||
// IsSpent doesnt mean the coin is spent, it means the output doesnt' exist.
|
// IsSpent doesn't mean the coin is spent, it means the output doesn't exist.
|
||||||
// So if the output does exist, then this transaction exists in the chain.
|
// So if the output does exist, then this transaction exists in the chain.
|
||||||
if (!existingCoin.IsSpent()) return TransactionError::ALREADY_IN_CHAIN;
|
if (!existingCoin.IsSpent()) return TransactionError::ALREADY_IN_CHAIN;
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,7 +309,7 @@ void BitcoinApplication::requestShutdown()
|
||||||
// rescanning a wallet.
|
// rescanning a wallet.
|
||||||
m_node.startShutdown();
|
m_node.startShutdown();
|
||||||
// Unsetting the client model can cause the current thread to wait for node
|
// Unsetting the client model can cause the current thread to wait for node
|
||||||
// to complete an operation, like wait for a RPC execution to complate.
|
// to complete an operation, like wait for a RPC execution to complete.
|
||||||
window->setClientModel(nullptr);
|
window->setClientModel(nullptr);
|
||||||
pollShutdownTimer->stop();
|
pollShutdownTimer->stop();
|
||||||
|
|
||||||
|
|
|
@ -1620,7 +1620,7 @@ UniValue joinpsbts(const JSONRPCRequest& request)
|
||||||
std::vector<int> output_indices(merged_psbt.outputs.size());
|
std::vector<int> output_indices(merged_psbt.outputs.size());
|
||||||
std::iota(output_indices.begin(), output_indices.end(), 0);
|
std::iota(output_indices.begin(), output_indices.end(), 0);
|
||||||
|
|
||||||
// Shuffle input and output indicies lists
|
// Shuffle input and output indices lists
|
||||||
Shuffle(input_indices.begin(), input_indices.end(), FastRandomContext());
|
Shuffle(input_indices.begin(), input_indices.end(), FastRandomContext());
|
||||||
Shuffle(output_indices.begin(), output_indices.end(), FastRandomContext());
|
Shuffle(output_indices.begin(), output_indices.end(), FastRandomContext());
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ UniValue SignTransaction(CMutableTransaction& mtx, const SigningProvider* keysto
|
||||||
* Parse a prevtxs UniValue array and get the map of coins from it
|
* Parse a prevtxs UniValue array and get the map of coins from it
|
||||||
*
|
*
|
||||||
* @param prevTxs Array of previous txns outputs that tx depends on but may not yet be in the block chain
|
* @param prevTxs Array of previous txns outputs that tx depends on but may not yet be in the block chain
|
||||||
* @param keystore A pointer to the temprorary keystore if there is one
|
* @param keystore A pointer to the temporary keystore if there is one
|
||||||
* @param coins Map of unspent outputs - coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call
|
* @param coins Map of unspent outputs - coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call
|
||||||
*/
|
*/
|
||||||
void ParsePrevouts(const UniValue& prevTxsUnival, FillableSigningProvider* keystore, std::map<COutPoint, Coin>& coins);
|
void ParsePrevouts(const UniValue& prevTxsUnival, FillableSigningProvider* keystore, std::map<COutPoint, Coin>& coins);
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace {
|
||||||
// xpubs use other characters too, but already have their own checksum
|
// xpubs use other characters too, but already have their own checksum
|
||||||
// mechanism.
|
// mechanism.
|
||||||
// * Function names like "multi()" use other characters, but mistakes in
|
// * Function names like "multi()" use other characters, but mistakes in
|
||||||
// these would generally result in an unparseable descriptor.
|
// these would generally result in an unparsable descriptor.
|
||||||
// * A case error always counts as 1 symbol error.
|
// * A case error always counts as 1 symbol error.
|
||||||
// * Any other 1 character substitution error counts as 1 or 2 symbol errors.
|
// * Any other 1 character substitution error counts as 1 or 2 symbol errors.
|
||||||
// * Any 1 symbol error is always detected.
|
// * Any 1 symbol error is always detected.
|
||||||
|
|
|
@ -733,7 +733,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
|
||||||
// To check these we first check if we meet the RBF criteria, above, and increment the descendant
|
// To check these we first check if we meet the RBF criteria, above, and increment the descendant
|
||||||
// limits by the direct conflict and its descendants (as these are recalculated in
|
// limits by the direct conflict and its descendants (as these are recalculated in
|
||||||
// CalculateMempoolAncestors by assuming the new transaction being added is a new descendant, with no
|
// CalculateMempoolAncestors by assuming the new transaction being added is a new descendant, with no
|
||||||
// removals, of each parent's existing dependant set). The ancestor count limits are unmodified (as
|
// removals, of each parent's existing dependent set). The ancestor count limits are unmodified (as
|
||||||
// the ancestor limits should be the same for both our new transaction and any conflicts).
|
// the ancestor limits should be the same for both our new transaction and any conflicts).
|
||||||
// We don't bother incrementing m_limit_descendants by the full removal count as that limit never comes
|
// We don't bother incrementing m_limit_descendants by the full removal count as that limit never comes
|
||||||
// into force here (as we're only adding a single transaction).
|
// into force here (as we're only adding a single transaction).
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
cas
|
|
||||||
hights
|
hights
|
||||||
mor
|
mor
|
||||||
mut
|
mut
|
||||||
objext
|
objext
|
||||||
unselect
|
|
||||||
useable
|
useable
|
||||||
wit
|
wit
|
||||||
unparseable
|
unparseable
|
||||||
|
@ -13,3 +11,4 @@ errorstring
|
||||||
keyserver
|
keyserver
|
||||||
homogenous
|
homogenous
|
||||||
setban
|
setban
|
||||||
|
hist
|
||||||
|
|
|
@ -15,6 +15,6 @@ if ! command -v codespell > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IGNORE_WORDS_FILE=test/lint/lint-spelling.ignore-words.txt
|
IGNORE_WORDS_FILE=test/lint/lint-spelling.ignore-words.txt
|
||||||
if ! codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=${IGNORE_WORDS_FILE} $(git ls-files -- ":(exclude)build-aux/m4/" ":(exclude)contrib/seeds/*.txt" ":(exclude)depends/" ":(exclude)doc/release-notes/" ":(exclude)src/leveldb/" ":(exclude)src/qt/locale/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/"); then
|
if ! codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=${IGNORE_WORDS_FILE} $(git ls-files -- ":(exclude)build-aux/m4/" ":(exclude)contrib/seeds/*.txt" ":(exclude)depends/" ":(exclude)doc/release-notes/" ":(exclude)src/leveldb/" ":(exclude)src/qt/locale/" ":(exclude)src/qt/*.qrc" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/"); then
|
||||||
echo "^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in ${IGNORE_WORDS_FILE}"
|
echo "^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in ${IGNORE_WORDS_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue