X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=e02f30b32954f7d445937b85cbd5bdf6e3fe761a;hb=e1fc548ff893f35d24565b381eca454ba6319ef4;hp=b1cfaa58fe2b306daf4d6412c8c8c459cab8db7b;hpb=b2b5b6f79c46c999729b65976d8cc22d6371589a;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index b1cfaa5..e02f30b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1697,7 +1697,7 @@ void CWallet::GetStakeWeightFromValue(const int64_t& nTime, const int64_t& nValu return; } - CBigNum bnCoinDayWeight = CBigNum(nValue) * nTimeWeight / COIN / (24 * 60 * 60); + CBigNum bnCoinDayWeight = CBigNum(nValue) * nTimeWeight / COIN / nOneDay; nWeight = bnCoinDayWeight.getuint64(); }