Browse Source
Remove declaration of no longer existent CheckWork
Also make ProcessBlockFound static as it is not used outside
miner.cpp.
Alternative implementation of #5549.
pull/145/head
Wladimir J. van der Laan
10 years ago
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
2 changed files with
1 additions and
3 deletions
-
src/miner.cpp
-
src/miner.h
|
|
@ -411,7 +411,7 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey) |
|
|
|
return CreateNewBlock(scriptPubKey); |
|
|
|
} |
|
|
|
|
|
|
|
bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) |
|
|
|
static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) |
|
|
|
{ |
|
|
|
LogPrintf("%s\n", pblock->ToString()); |
|
|
|
LogPrintf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue)); |
|
|
|
|
|
@ -24,8 +24,6 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn); |
|
|
|
CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey); |
|
|
|
/** Modify the extranonce in a block */ |
|
|
|
void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& nExtraNonce); |
|
|
|
/** Check mined block */ |
|
|
|
bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey); |
|
|
|
void UpdateTime(CBlockHeader* block, const CBlockIndex* pindexPrev); |
|
|
|
|
|
|
|
extern double dHashesPerSec; |
|
|
|