Skip to content

Commit

Permalink
Merge pull request #22
Browse files Browse the repository at this point in the history
f226262 Guard wallet code in pow.cpp with ENABLE_WALLET (Patrick Strateman)
  • Loading branch information
pstratem committed Jun 12, 2015
2 parents 1ac550c + f226262 commit 9cd702a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
#include "script/standard.h"
#include "uint256.h"
#include "util.h"

#ifdef ENABLE_WALLET
#include "wallet.h"

extern CWallet* pwalletMain;
#endif

CScript CombineBlockSignatures(const CBlockHeader& header, const CScript& scriptSig1, const CScript& scriptSig2)
{
Expand Down Expand Up @@ -60,10 +63,12 @@ bool CheckProof(const CBlockHeader& block)
return GenericVerifyScript(block.proof.solution, block.proof.challenge, SCRIPT_VERIFY_P2SH, block);
}

#ifdef ENABLE_WALLET
bool GenerateProof(CBlockHeader *pblock, CWallet *pwallet)
{
return GenericSignScript(*pwallet, *pblock, pblock->proof.challenge, pblock->proof.solution);
}
#endif

void ResetProof(CBlockHeader& block)
{
Expand Down

0 comments on commit 9cd702a

Please sign in to comment.