git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Define nOneDay and nOneHour constants.
[novacoin.git]
/
src
/
wallet.cpp
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
b1cfaa5
..
e02f30b
100644
(file)
--- 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();
}