Set max_money

This commit is contained in:
jl777
2019-03-01 23:33:41 -11:00
parent a5475a30de
commit f9913c7a5a
2 changed files with 5 additions and 4 deletions

View File

@@ -266,7 +266,7 @@ uint64_t komodo_current_supply(uint32_t nHeight)
}
#define KOMODO_MAXNVALUE (((uint64_t)1 << 63) - 1)
#define KOMODO_BIT63SET(x) ((x) & ((uint64_t)1 << 63))
cur_money *= COIN;
if ( KOMODO_BIT63SET(cur_money) != 0 )
return(KOMODO_MAXNVALUE);
if ( ASSETCHAINS_COMMISSION != 0 )
@@ -278,5 +278,6 @@ uint64_t komodo_current_supply(uint32_t nHeight)
return(KOMODO_MAXNVALUE);
return(newval);
}
fprintf(stderr,"cur_money %.8f\n",(double)cur_money/COIN);
return(cur_money);
}