File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1414#include " script/standard.h"
1515#include " uint256.h"
1616#include " util.h"
17+
18+ #ifdef ENABLE_WALLET
1719#include " wallet.h"
1820
1921extern CWallet* pwalletMain;
22+ #endif
2023
2124CScript 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
6367bool GenerateProof (CBlockHeader *pblock, CWallet *pwallet)
6468{
6569 return GenericSignScript (*pwallet, *pblock, pblock->proof .challenge , pblock->proof .solution );
6670}
71+ #endif
6772
6873void ResetProof (CBlockHeader& block)
6974{
You can’t perform that action at this time.
0 commit comments