diff --git a/src/komodo_pax.h b/src/komodo_pax.h index 85212e593..159980cd7 100644 --- a/src/komodo_pax.h +++ b/src/komodo_pax.h @@ -501,7 +501,7 @@ uint64_t komodo_paxprice(uint64_t *seedp,int32_t height,char *base,char *rel,uin sum += price; nonz++; } - if ( height < 150000 ) + if ( height < 1500 ) // set to future height break; } if ( nonz != 0 ) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 604391023..9a9bd637c 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2510,7 +2510,7 @@ uint64_t komodo_interestsum() BOOST_FOREACH(const COutput& out,vecOutputs) { CAmount nValue = out.tx->vout[out.i].nValue; - if ( out.tx->nLockTime != 0 ) + if ( out.tx->nLockTime != 0 && out.fSpendable != 0 ) { BlockMap::iterator it = mapBlockIndex.find(pcoinsTip->GetBestBlock()); CBlockIndex *tipindex,*pindex = it->second;