diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 7b7bf1cc4..4ac98bf1b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2209,13 +2209,15 @@ void CWallet::AvailableCoins(vector& vCoins, bool fOnlyConfirmed, const extern char ASSETCHAINS_SYMBOL[16]; if ( strcmp(ASSETCHAINS_SYMBOL,"REVS") == 0 && chainActive.Tip() != 0 ) { - uint64_t interest; + uint64_t interest,*ptr; interest = komodo_interest(chainActive.Tip()->nHeight+1,pcoin->vout[i].nValue,pcoin->nLockTime,chainActive.Tip()->nTime); if ( pcoin->vout[i].nValue >= COIN ) { 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); - pcoin->vout[i].nValue += interest; + ptr = (uint64_t *)&pcoin->vout[i].nValue; + (*ptr) += interest; + //pcoin->vout[i].nValue += interest; } } #endif