Skip to content

Commit

Permalink
Allow private ZOMBIEs
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Mar 8, 2024
1 parent 612c879 commit e50acce
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/komodo_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1553,16 +1553,14 @@ void komodo_args(char *argv0)
{
BITCOIND_RPCPORT = GetArg("-rpcport", ASSETCHAINS_RPCPORT);
//fprintf(stderr,"(%s) port.%u chain params initialized\n",chainName.symbol().c_str(),BITCOIND_RPCPORT);
if ( chainName.isSymbol("PIRATE") && ASSETCHAINS_HALVING[0] == 77777 )
{
if (chainName.isSymbol("PIRATE") && ASSETCHAINS_HALVING[0] == 77777) {
ASSETCHAINS_HALVING[0] *= 5;
fprintf(stderr,"PIRATE halving changed to %d %.1f days ASSETCHAINS_LASTERA.%llu\n",(int32_t)ASSETCHAINS_HALVING[0],(double)ASSETCHAINS_HALVING[0]/1440,(long long)ASSETCHAINS_LASTERA);
fprintf(stderr, "PIRATE halving changed to %d %.1f days ASSETCHAINS_LASTERA.%llu\n", (int32_t)ASSETCHAINS_HALVING[0], (double)ASSETCHAINS_HALVING[0] / 1440, (long long)ASSETCHAINS_LASTERA);
}
else if ( chainName.isSymbol("ZOMBIE") and IS_KOMODO_TESTNODE )
fprintf(stderr, "TEST COIN, DO NOT BUY\n");
else if ( ASSETCHAINS_PRIVATE != 0 )
{
fprintf(stderr,"-ac_private for a non-PIRATE chain is not supported. The only reason to have an -ac_private chain is for total privacy and that is best achieved with the largest anon set. PIRATE has that and it is recommended to just use PIRATE\n");

std::set<std::string> allowedPrivateOnly = {"PIRATE", "ZOMBIE"};
if (ASSETCHAINS_PRIVATE != 0 && allowedPrivateOnly.find(chainName.ToString()) == allowedPrivateOnly.end()) {
fprintf(stderr, "-ac_private for a non-PIRATE chain is not supported. The only reason to have an -ac_private chain is for total privacy and that is best achieved with the largest anon set. PIRATE has that and it is recommended to just use PIRATE\n");
StartShutdown();
}
// Set cc enables for all existing ac_cc chains here.
Expand Down

0 comments on commit e50acce

Please sign in to comment.