Skip to content

Commit f226262

Browse files
committed
Guard wallet code in pow.cpp with ENABLE_WALLET
1 parent 1ac550c commit f226262

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
#include "script/standard.h"
1515
#include "uint256.h"
1616
#include "util.h"
17+
18+
#ifdef ENABLE_WALLET
1719
#include "wallet.h"
1820

1921
extern CWallet* pwalletMain;
22+
#endif
2023

2124
CScript CombineBlockSignatures(const CBlockHeader& header, const CScript& scriptSig1, const CScript& scriptSig2)
2225
{
@@ -60,10 +63,12 @@ bool CheckProof(const CBlockHeader& block)
6063
return GenericVerifyScript(block.proof.solution, block.proof.challenge, SCRIPT_VERIFY_P2SH, block);
6164
}
6265

66+
#ifdef ENABLE_WALLET
6367
bool GenerateProof(CBlockHeader *pblock, CWallet *pwallet)
6468
{
6569
return GenericSignScript(*pwallet, *pblock, pblock->proof.challenge, pblock->proof.solution);
6670
}
71+
#endif
6772

6873
void ResetProof(CBlockHeader& block)
6974
{

0 commit comments

Comments
 (0)