From bae68466895d6509f25625c4a54e405e2a7af809 Mon Sep 17 00:00:00 2001 From: momantech Date: Wed, 17 Apr 2024 18:44:03 +0800 Subject: [PATCH] Fix some typos in comments Signed-off-by: momantech --- src/cryptopp/drbg.h | 4 ++-- src/node/miner.cpp | 6 +++--- src/rpc/server.cpp | 2 +- src/script/standard.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cryptopp/drbg.h b/src/cryptopp/drbg.h index a146019a1a..ac0dfe7120 100644 --- a/src/cryptopp/drbg.h +++ b/src/cryptopp/drbg.h @@ -120,12 +120,12 @@ class NIST_DRBG : public RandomNumberGenerator virtual unsigned int GetMaxNonce() const=0; //! \brief Provides the maximum size of a request to GenerateBlock - //! \returns The the maximum size of a request to GenerateBlock(), in bytes + //! \returns The maximum size of a request to GenerateBlock(), in bytes //! \details The equivalent class constant is MAXIMUM_BYTES_PER_REQUEST virtual unsigned int GetMaxBytesPerRequest() const=0; //! \brief Provides the maximum number of requests before a reseed - //! \returns The the maximum number of requests before a reseed, in bytes + //! \returns The maximum number of requests before a reseed, in bytes //! \details The equivalent class constant is MAXIMUM_REQUESTS_BEFORE_RESEED. //! MAXIMUM_REQUESTS_BEFORE_RESEED has been reduced from 248 to INT_MAX //! to fit the underlying C++ datatype. diff --git a/src/node/miner.cpp b/src/node/miner.cpp index 1a502104ad..832c10c5aa 100644 --- a/src/node/miner.cpp +++ b/src/node/miner.cpp @@ -1102,10 +1102,10 @@ class MyDelegations : public DelegationFilterBase // Address map std::map mapAddress; - // Get all addreses with coins + // Get all addresses with coins SelectAddress(mapAddress, nHeight); - // Get all addreses for delegations in the GUI + // Get all addresses for delegations in the GUI for(auto item : pwallet->mapDelegation) { uint160 address = item.second.delegateAddress; @@ -1942,7 +1942,7 @@ class StakeMiner : public IStakeMiner if (SignBlock(d->pblockfilled, *(d->pwallet), d->nTotalFees, blockTime, d->setCoins, d->mapSolveSelectedCoins[blockTime], d->mapSolveDelegateCoins[blockTime], true)) { // Should always reach here unless we spent too much time processing transactions and the timestamp is now invalid - // CheckStake also does CheckBlock and AcceptBlock to propogate it to the network + // CheckStake also does CheckBlock and AcceptBlock to propagate it to the network bool validBlock = false; while(!validBlock) { if (IsStale(d->pblockfilled)) { diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 534cc9d7c2..9afa0148ee 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -446,7 +446,7 @@ static inline JSONRPCRequest& transformNamedArguments(const JSONRPCRequest& _in, } // Process expected parameters. If any parameters were left unspecified in // the request before a parameter that was specified, null values need to be - // inserted at the unspecifed parameter positions, and the "hole" variable + // inserted at the unspecified parameter positions, and the "hole" variable // below tracks the number of null values that need to be inserted. // The "initial_hole_size" variable stores the size of the initial hole, // i.e. how many initial positional arguments were left unspecified. This is diff --git a/src/script/standard.h b/src/script/standard.h index 2f86072dda..b0a82de1f4 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -22,7 +22,7 @@ static const bool DEFAULT_ACCEPT_DATACARRIER = true; //Make sure is always equal or greater than MINIMUM_GAS_LIMIT (which we can't reference here due to insane header dependency chains) static const uint64_t STANDARD_MINIMUM_GAS_LIMIT = 10000; //contract executions with a price cheaper than this (in satoshis) are not standard -//TODO this needs to be controlled by DGP and needs to be propogated from consensus parameters +//TODO this needs to be controlled by DGP and needs to be propagated from consensus parameters static const uint64_t STANDARD_MINIMUM_GAS_PRICE = 1; class CKeyID;