From 49db2cbbe10ab1f641fd96c99ac044cd21c41c52 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 18 Jan 2017 13:35:32 +0200 Subject: [PATCH] test --- src/komodo_pax.h | 2 +- src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;