Fix -ac_import

This commit is contained in:
jl777
2018-12-27 08:28:37 -11:00
parent 141560e39a
commit 722964362a

View File

@@ -1777,10 +1777,13 @@ void komodo_args(char *argv0)
ASSETCHAINS_CODAPORT = GetArg("-ac_coda",0); ASSETCHAINS_CODAPORT = GetArg("-ac_coda",0);
ASSETCHAINS_SELFIMPORT = GetArg("-ac_import",""); // BEAM, CODA, PUBKEY, GATEWAY ASSETCHAINS_SELFIMPORT = GetArg("-ac_import",""); // BEAM, CODA, PUBKEY, GATEWAY
if ( ASSETCHAINS_SELFIMPORT == "PUBKEY" && strlen(ASSETCHAINS_OVERRIDE_PUBKEY.c_str()) != 66 ) if ( ASSETCHAINS_SELFIMPORT == "PUBKEY" )
{ {
fprintf(stderr,"invalid -ac_pubkey for -ac_import=PUBKEY\n"); if ( strlen(ASSETCHAINS_OVERRIDE_PUBKEY.c_str()) != 66 )
ASSETCHAINS_SELFIMPORT = ""; {
fprintf(stderr,"invalid -ac_pubkey for -ac_import=PUBKEY\n");
ASSETCHAINS_SELFIMPORT = "";
}
} }
else if ( ASSETCHAINS_SELFIMPORT == "BEAM" && ASSETCHAINS_BEAMPORT == 0 ) else if ( ASSETCHAINS_SELFIMPORT == "BEAM" && ASSETCHAINS_BEAMPORT == 0 )
{ {
@@ -1831,7 +1834,7 @@ void komodo_args(char *argv0)
ASSETCHAINS_COMMISSION = 53846154; // maps to 35% ASSETCHAINS_COMMISSION = 53846154; // maps to 35%
printf("ASSETCHAINS_COMMISSION defaulted to 35%% when founders reward active\n"); printf("ASSETCHAINS_COMMISSION defaulted to 35%% when founders reward active\n");
} }
else else if ( ASSETCHAINS_SELFIMPORT.size() == 0 )
{ {
//ASSETCHAINS_OVERRIDE_PUBKEY.clear(); //ASSETCHAINS_OVERRIDE_PUBKEY.clear();
printf("-ac_perc must be set with -ac_pubkey\n"); printf("-ac_perc must be set with -ac_pubkey\n");