From 48bdf7c12d0b812a726e1c6c85e4c2ab94e1d91a Mon Sep 17 00:00:00 2001 From: jimmycathy Date: Sat, 4 May 2024 20:59:54 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: jimmycathy --- src/eth_client/libdevcrypto/Common.h | 2 +- src/eth_client/libethereum/ExtVM.cpp | 2 +- src/minisketch/src/sketch_impl.h | 2 +- src/node/miner.cpp | 2 +- src/pos.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/eth_client/libdevcrypto/Common.h b/src/eth_client/libdevcrypto/Common.h index fa6c87b256..0abedd2171 100644 --- a/src/eth_client/libdevcrypto/Common.h +++ b/src/eth_client/libdevcrypto/Common.h @@ -113,7 +113,7 @@ inline bytesSec decryptSymNoAuth(SecureFixedHash<32> const& _k, h128 const& _iv, /// Recovers Public key from signed message hash. Public recover(Signature const& _sig, h256 const& _hash); -/// Returns siganture of message hash. +/// Returns signature of message hash. Signature sign(Secret const& _k, h256 const& _hash); /// Verify signature. diff --git a/src/eth_client/libethereum/ExtVM.cpp b/src/eth_client/libethereum/ExtVM.cpp index 5b450e1724..d79333f83f 100644 --- a/src/eth_client/libethereum/ExtVM.cpp +++ b/src/eth_client/libethereum/ExtVM.cpp @@ -36,7 +36,7 @@ static unsigned const c_offloadPoint = (c_defaultStackSize - c_entryOverhead) / void goOnOffloadedStack(Executive& _e, OnOpFunc const& _onOp) { - // Set new stack size enouth to handle the rest of the calls up to the limit. + // Set new stack size enough to handle the rest of the calls up to the limit. boost::thread::attributes attrs; attrs.set_stack_size((c_depthLimit - c_offloadPoint) * c_singleExecutionStackSize); diff --git a/src/minisketch/src/sketch_impl.h b/src/minisketch/src/sketch_impl.h index 4547b742f2..e9f18a9b87 100644 --- a/src/minisketch/src/sketch_impl.h +++ b/src/minisketch/src/sketch_impl.h @@ -217,7 +217,7 @@ bool RecFindRoots(std::vector>& stack, size_t pos, } if (fully_factorizable) { - // Every succesful iteration of this algorithm splits the input + // Every successful iteration of this algorithm splits the input // polynomial further into buckets, each corresponding to a subset // of 2^(BITS-depth) roots. If after depth splits the degree of // the polynomial is >= 2^(BITS-depth), something is wrong. diff --git a/src/node/miner.cpp b/src/node/miner.cpp index 832c10c5aa..c0e0b58e31 100644 --- a/src/node/miner.cpp +++ b/src/node/miner.cpp @@ -1958,7 +1958,7 @@ class StakeMiner : public IStakeMiner } if (d->pblockfilled->GetBlockTime() > FutureDrift(GetAdjustedTimeSeconds(), d->nHeight, d->consensusParams)) { if (d->fAggressiveStaking) { - //if being agressive, then check more often to publish immediately when valid. This might allow you to find more blocks, + //if being aggressive, then check more often to publish immediately when valid. This might allow you to find more blocks, //but also increases the chance of broadcasting invalid blocks and getting DoS banned by nodes, //or receiving more stale/orphan blocks than normal. Use at your own risk. if(!Sleep(100)) break; diff --git a/src/pos.cpp b/src/pos.cpp index 88e5596107..1a16c967b0 100644 --- a/src/pos.cpp +++ b/src/pos.cpp @@ -726,7 +726,7 @@ bool GetMPoSOutputs(std::vector& mposOutputList, int64_t nRewardPiece, i int64_t nRewardDelegate, nRewardStaker; if(!SplitOfflineStakeReward(nRewardPiece, blockScript.fee, nRewardDelegate, nRewardStaker)) { - LogPrint(BCLog::COINSTAKE, "Fail to to split the offline staking reward\n"); + LogPrint(BCLog::COINSTAKE, "Fail to split the offline staking reward\n"); return false; }