This commit is contained in:
jl777
2016-11-15 14:54:20 -03:00
parent e9e8044e66
commit 2f0645568b
2 changed files with 2 additions and 1 deletions

View File

@@ -2213,7 +2213,7 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
if ( pcoin->vout[i].nValue >= COIN )
{
interest = komodo_interest(chainActive.Tip()->nHeight+1,pcoin->vout[i].nValue,pcoin->nLockTime,chainActive.Tip()->nTime);
if ( interest != 0 && pcoin->vout[i].addedinterest == 0 )
if ( interest != 0 && pcoin->vout[i].interest == 0 )
{
printf("wallet nValueRet %.8f += interest %.8f ht.%d lock.%u tip.%u\n",(double)pcoin->vout[i].nValue/COIN,(double)interest/COIN,chainActive.Tip()->nHeight+1,pcoin->nLockTime,chainActive.Tip()->nTime);
fprintf(stderr,"wallet nValueRet %.8f += interest %.8f ht.%d lock.%u tip.%u\n",(double)pcoin->vout[i].nValue/COIN,(double)interest/COIN,chainActive.Tip()->nHeight+1,pcoin->nLockTime,chainActive.Tip()->nTime);

View File

@@ -151,6 +151,7 @@ struct COutputEntry
CTxDestination destination;
CAmount amount;
int vout;
uint64_t interest;
};
/** An note outpoint */