Skip to content

Commit

Permalink
chore: fix some typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: jimmycathy <[email protected]>
  • Loading branch information
jimmycathy committed May 4, 2024
1 parent cc65314 commit 48bdf7c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/eth_client/libdevcrypto/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/eth_client/libethereum/ExtVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/minisketch/src/sketch_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ bool RecFindRoots(std::vector<std::vector<typename F::Elem>>& 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.
Expand Down
2 changes: 1 addition & 1 deletion src/node/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ bool GetMPoSOutputs(std::vector<CTxOut>& 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;
}

Expand Down

0 comments on commit 48bdf7c

Please sign in to comment.