mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge #13954: Warn (don't fail!) on spelling errors. Fix typos reported by codespell.
f8a81f73aclint: Add spell check linter (codespell) (practicalswift)ada356208eFix typos reported by codespell (practicalswift) Pull request description: * Check for common misspellings using `codespell`. * Fix recently introduced typos reported by `codespell`. Tree-SHA512: 9974c0e640b411c7d0ebc5b45de253c19bac7fe3002cd98601ff8da8db584224c2fd7d331aee3df612c9f2cfef540d647a9b4c5a1a73fd208dc93ce4bf9e5e3e
This commit is contained in:
@@ -78,7 +78,7 @@ static void SetMaxOpenFiles(leveldb::Options *options) {
|
||||
// do not interfere with select() loops. On 64-bit Unix hosts this value is
|
||||
// also OK, because up to that amount LevelDB will use an mmap
|
||||
// implementation that does not use extra file descriptors (the fds are
|
||||
// closed after being mmaped).
|
||||
// closed after being mmap'ed).
|
||||
//
|
||||
// Increasing the value beyond the default is dangerous because LevelDB will
|
||||
// fall back to a non-mmap implementation when the file count is too large.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Press "Ok" button in message box dialog.
|
||||
*
|
||||
* @param text - Optionally store dialog text.
|
||||
* @param msec - Number of miliseconds to pause before triggering the callback.
|
||||
* @param msec - Number of milliseconds to pause before triggering the callback.
|
||||
*/
|
||||
void ConfirmMessage(QString* text = nullptr, int msec = 0);
|
||||
|
||||
|
||||
@@ -1740,7 +1740,7 @@ UniValue converttopsbt(const JSONRPCRequest& request)
|
||||
" will continue. If false, RPC will fail if any signatures are present.\n"
|
||||
"3. iswitness (boolean, optional) Whether the transaction hex is a serialized witness transaction.\n"
|
||||
" If iswitness is not present, heuristic tests will be used in decoding. If true, only witness deserializaion\n"
|
||||
" will be tried. If false, only non-witness deserialization wil be tried. Only has an effect if\n"
|
||||
" will be tried. If false, only non-witness deserialization will be tried. Only has an effect if\n"
|
||||
" permitsigdata is true.\n"
|
||||
"\nResult:\n"
|
||||
" \"psbt\" (string) The resulting raw transaction (base64-encoded string)\n"
|
||||
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
/**
|
||||
* Add a callback to be executed. Callbacks are executed serially
|
||||
* and memory is release-acquire consistent between callback executions.
|
||||
* Practially, this means that callbacks can behave as if they are executed
|
||||
* Practically, this means that callbacks can behave as if they are executed
|
||||
* in order by a single thread.
|
||||
*/
|
||||
void AddToProcessQueue(std::function<void (void)> func);
|
||||
|
||||
@@ -373,7 +373,7 @@ enum class ParseScriptContext {
|
||||
P2WSH,
|
||||
};
|
||||
|
||||
/** Parse a constant. If succesful, sp is updated to skip the constant and return true. */
|
||||
/** Parse a constant. If successful, sp is updated to skip the constant and return true. */
|
||||
bool Const(const std::string& str, Span<const char>& sp)
|
||||
{
|
||||
if ((size_t)sp.size() >= str.size() && std::equal(str.begin(), str.end(), sp.begin())) {
|
||||
@@ -383,7 +383,7 @@ bool Const(const std::string& str, Span<const char>& sp)
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Parse a function call. If succesful, sp is updated to be the function's argument(s). */
|
||||
/** Parse a function call. If successful, sp is updated to be the function's argument(s). */
|
||||
bool Func(const std::string& str, Span<const char>& sp)
|
||||
{
|
||||
if ((size_t)sp.size() >= str.size() + 2 && sp[str.size()] == '(' && sp[sp.size() - 1] == ')' && std::equal(str.begin(), str.end(), sp.begin())) {
|
||||
|
||||
@@ -529,7 +529,7 @@ public:
|
||||
explicit BitStreamReader(IStream& istream) : m_istream(istream) {}
|
||||
|
||||
/** Read the specified number of bits from the stream. The data is returned
|
||||
* in the nbits least signficant bits of a 64-bit uint.
|
||||
* in the nbits least significant bits of a 64-bit uint.
|
||||
*/
|
||||
uint64_t Read(int nbits) {
|
||||
if (nbits < 0 || nbits > 64) {
|
||||
|
||||
@@ -75,7 +75,7 @@ void* Arena::alloc(size_t size)
|
||||
|
||||
// Create the used-chunk, taking its space from the end of the free-chunk
|
||||
const size_t size_remaining = size_ptr_it->first - size;
|
||||
auto alloced = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first;
|
||||
auto allocated = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first;
|
||||
chunks_free_end.erase(size_ptr_it->second + size_ptr_it->first);
|
||||
if (size_ptr_it->first == size) {
|
||||
// whole chunk is used up
|
||||
@@ -88,7 +88,7 @@ void* Arena::alloc(size_t size)
|
||||
}
|
||||
size_to_free_chunk.erase(size_ptr_it);
|
||||
|
||||
return reinterpret_cast<void*>(alloced->first);
|
||||
return reinterpret_cast<void*>(allocated->first);
|
||||
}
|
||||
|
||||
void Arena::free(void *ptr)
|
||||
|
||||
@@ -72,7 +72,7 @@ BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& data
|
||||
database_filename = "wallet.dat";
|
||||
}
|
||||
LOCK(cs_db);
|
||||
// Note: An ununsed temporary BerkeleyEnvironment object may be created inside the
|
||||
// Note: An unused temporary BerkeleyEnvironment object may be created inside the
|
||||
// emplace function if the key already exists. This is a little inefficient,
|
||||
// but not a big concern since the map will be changed in the future to hold
|
||||
// pointers instead of objects, anyway.
|
||||
|
||||
Reference in New Issue
Block a user