Skip to content

Commit

Permalink
refactor: Remove redundant 'wallet::' namespace in <node/miner.cpp>
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Jan 23, 2024
1 parent 3a984bb commit 6b65014
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static bool ProcessBlockFound(const CBlock* pblock, ChainstateManager& chainman)

#ifdef ENABLE_WALLET
// qtum
bool SleepStaker(wallet::CWallet *pwallet, uint64_t milliseconds) {
bool SleepStaker(CWallet *pwallet, uint64_t milliseconds) {
uint64_t seconds = milliseconds / 1000;
milliseconds %= 1000;

Expand Down Expand Up @@ -656,7 +656,7 @@ bool SignBlock(CBlock& block, const CWallet& keystore)
}

// peercoin
void PoSMiner(wallet::CWallet *pwallet)
void PoSMiner(CWallet *pwallet)
{
pwallet->WalletLogPrintf("PoSMiner started for proof-of-stake\n");
util::ThreadRename(strprintf("blackcoin-stake-miner-%s", pwallet->GetName()));
Expand Down Expand Up @@ -781,7 +781,7 @@ void PoSMiner(wallet::CWallet *pwallet)
}

// peercoin: stake miner thread
void static ThreadStakeMiner(wallet::CWallet *pwallet)
void static ThreadStakeMiner(CWallet *pwallet)
{
pwallet->WalletLogPrintf("ThreadStakeMiner started\n");
while (true) {
Expand All @@ -799,7 +799,7 @@ void static ThreadStakeMiner(wallet::CWallet *pwallet)
}

// qtum
void StakeCoins(bool fStake, wallet::CWallet *pwallet, std::unique_ptr<std::vector<std::thread>>& threadStakeMinerGroup)
void StakeCoins(bool fStake, CWallet *pwallet, std::unique_ptr<std::vector<std::thread>>& threadStakeMinerGroup)
{
// If threadStakeMinerGroup is initialized join all threads and clear the vector
if (threadStakeMinerGroup) {
Expand Down

0 comments on commit 6b65014

Please sign in to comment.