Browse Source

Allow tunable maxreorg

pull/4/head
jl777 6 years ago
parent
commit
9269bc177c
  1. 1
      src/komodo_utils.h
  2. 2
      src/main.h

1
src/komodo_utils.h

@ -1701,6 +1701,7 @@ void komodo_args(char *argv0)
}
}
KOMODO_STOPAT = GetArg("-stopat",0);
MAX_REORG_LENGTH = GetArg("-maxreorg",MAX_REORG_LENGTH);
ASSETCHAINS_CC = GetArg("-ac_cc",0);
KOMODO_CCACTIVATE = GetArg("-ac_ccactivate",0);
ASSETCHAINS_PUBLIC = GetArg("-ac_public",0);

2
src/main.h

@ -78,7 +78,7 @@ static const bool DEFAULT_ALERTS = true;
/** Minimum alert priority for enabling safe mode. */
static const int ALERT_PRIORITY_SAFE_MODE = 4000;
/** Maximum reorg length we will accept before we shut down and alert the user. */
static const unsigned int MAX_REORG_LENGTH = 2*(_COINBASE_MATURITY - 1);
static unsigned int MAX_REORG_LENGTH = (_COINBASE_MATURITY - 1);
/** Maximum number of signature check operations in an IsStandard() P2SH script */
static const unsigned int MAX_P2SH_SIGOPS = 15;
/** The maximum number of sigops we're willing to relay/mine in a single tx */

Loading…
Cancel
Save