Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
2f0645568b
  1. 2
      src/wallet/wallet.cpp
  2. 1
      src/wallet/wallet.h

2
src/wallet/wallet.cpp

@ -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);

1
src/wallet/wallet.h

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

Loading…
Cancel
Save