This commit is contained in:
jl777
2017-01-18 13:35:32 +02:00
parent eea23236bd
commit 49db2cbbe1
2 changed files with 2 additions and 2 deletions

View File

@@ -501,7 +501,7 @@ uint64_t komodo_paxprice(uint64_t *seedp,int32_t height,char *base,char *rel,uin
sum += price; sum += price;
nonz++; nonz++;
} }
if ( height < 150000 ) if ( height < 1500 ) // set to future height
break; break;
} }
if ( nonz != 0 ) if ( nonz != 0 )

View File

@@ -2510,7 +2510,7 @@ uint64_t komodo_interestsum()
BOOST_FOREACH(const COutput& out,vecOutputs) BOOST_FOREACH(const COutput& out,vecOutputs)
{ {
CAmount nValue = out.tx->vout[out.i].nValue; 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()); BlockMap::iterator it = mapBlockIndex.find(pcoinsTip->GetBestBlock());
CBlockIndex *tipindex,*pindex = it->second; CBlockIndex *tipindex,*pindex = it->second;