jumblr_pause and jumblr_resume

Thanks to @amigo for the feature request
This commit is contained in:
jl777
2017-11-22 10:53:16 +04:00
parent 9282f3e9fc
commit eea03b7b5d
6 changed files with 29 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ uint64_t komodo_moneysupply(int32_t height)
uint64_t _komodo_interestnew(uint64_t nValue,uint32_t nLockTime,uint32_t tiptime)
{
int32_t minutes; uint64_t interest = 0;
if ( (minutes= (tiptime - nLockTime) / 60) >= 60 )
if ( tiptime > nLockTime && (minutes= (tiptime - nLockTime) / 60) >= 60 )
{
if ( minutes > 365 * 24 * 60 )
minutes = 365 * 24 * 60;