Handle -disablewallet=1
This commit is contained in:
@@ -2697,6 +2697,8 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|||||||
uint64_t komodo_interestsum()
|
uint64_t komodo_interestsum()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
|
if ( GetBoolArg("-disablewallet", false) == 0 )
|
||||||
|
{
|
||||||
uint64_t interest,sum = 0; int32_t txheight; uint32_t locktime;
|
uint64_t interest,sum = 0; int32_t txheight; uint32_t locktime;
|
||||||
vector<COutput> vecOutputs;
|
vector<COutput> vecOutputs;
|
||||||
assert(pwalletMain != NULL);
|
assert(pwalletMain != NULL);
|
||||||
@@ -2720,9 +2722,9 @@ uint64_t komodo_interestsum()
|
|||||||
KOMODO_INTERESTSUM = sum;
|
KOMODO_INTERESTSUM = sum;
|
||||||
KOMODO_WALLETBALANCE = pwalletMain->GetBalance();
|
KOMODO_WALLETBALANCE = pwalletMain->GetBalance();
|
||||||
return(sum);
|
return(sum);
|
||||||
#else
|
}
|
||||||
return(0);
|
|
||||||
#endif
|
#endif
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
||||||
|
|||||||
Reference in New Issue
Block a user