This commit is contained in:
jl777
2017-01-30 07:51:47 +02:00
parent 2e2e49fc66
commit afacf361e8
2 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33)
int32_t komodo_isrealtime(int32_t *kmdheightp);
uint64_t komodo_paxtotal();
int32_t komodo_longestchain();
uint64_t komodo_maxallowed(int32_t baseid);
pthread_mutex_t komodo_mutex;

View File

@@ -1452,7 +1452,7 @@ int32_t komodo_whoami(char *pubkeystr,int32_t height)
void komodo_args()
{
extern int64_t MAX_MONEY;
std::string name,addn; char *dirname,fname[512],magicstr[9]; uint8_t magic[4]; FILE *fp; int32_t i,len;
std::string name,addn; char *dirname,fname[512],magicstr[9]; uint8_t magic[4]; FILE *fp; int32_t i,baseid,len;
IS_KOMODO_NOTARY = GetBoolArg("-notary", false);
NOTARY_PUBKEY = GetArg("-pubkey", "");
if ( strlen(NOTARY_PUBKEY.c_str()) == 66 )
@@ -1467,7 +1467,7 @@ void komodo_args()
{
ASSETCHAINS_SUPPLY = GetArg("-ac_supply",10);
if ( (baseid= komodo_baseid(ASSETCHAINS_SYMBOL)) >= 0 && baseid < 32 )
MAX_MONEY = komodo_maxallowed(baseid) * SATOSHIDEN;
MAX_MONEY = komodo_maxallowed(baseid);
else MAX_MONEY = (ASSETCHAINS_SUPPLY+1) * SATOSHIDEN;
printf("MAX_MONEY.%s %.8f\n",(double)MAX_MONEY/SATOSHIDEN);
addn = GetArg("-seednode","");