From afacf361e87a68756ee5da4ec45e50672e6ba960 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Jan 2017 07:51:47 +0200 Subject: [PATCH] test --- src/komodo_globals.h | 1 + src/komodo_utils.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_globals.h b/src/komodo_globals.h index a63c4c754..b908e0669 100644 --- a/src/komodo_globals.h +++ b/src/komodo_globals.h @@ -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; diff --git a/src/komodo_utils.h b/src/komodo_utils.h index f32a6c56c..21ae2338c 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -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","");