From 68713b786ff0d1033b727bbd8d72286c90d38e66 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Nov 2016 15:16:15 -0300 Subject: [PATCH] test --- src/wallet/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ccfda8aee..b38b2736c 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2219,7 +2219,8 @@ void CWallet::AvailableCoins(vector& vCoins, bool fOnlyConfirmed, const 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); ptr = (uint64_t *)&pcoin->vout[i].nValue; (*ptr) += interest; - pcoin->vout[i].interest = interest; + ptr = (uint64_t *)&pcoin->vout[i].interest; + (*ptr) = interest; //pcoin->vout[i].nValue += interest; } }