Browse Source

-komodo_interestsum() for non-KMD

metaverse
jl777 6 years ago
parent
commit
b7a556e838
  1. 2
      src/bitcoind.cpp
  2. 3
      src/komodo_gateway.h
  3. 2
      src/wallet/rpcwallet.cpp

2
src/bitcoind.cpp

@ -62,7 +62,7 @@ void WaitForShutdown(boost::thread_group* threadGroup)
}
else
{
komodo_interestsum();
//komodo_interestsum();
komodo_longestchain();
MilliSleep(20000);
}

3
src/komodo_gateway.h

@ -1380,7 +1380,8 @@ void komodo_passport_iteration()
}
if ( komodo_chainactive_timestamp() > lastinterest )
{
komodo_interestsum();
if ( ASSETCHAINS_SYMBOL[0] == 0 )
komodo_interestsum();
komodo_longestchain();
lastinterest = komodo_chainactive_timestamp();
}

2
src/wallet/rpcwallet.cpp

@ -2750,7 +2750,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
uint64_t komodo_interestsum()
{
#ifdef ENABLE_WALLET
if ( GetBoolArg("-disablewallet", false) == 0 )
if ( ASSETCHAINS_SYMBOL[0] == 0 && GetBoolArg("-disablewallet", false) == 0 )
{
uint64_t interest,sum = 0; int32_t txheight; uint32_t locktime;
vector<COutput> vecOutputs;

Loading…
Cancel
Save