@@ -941,7 +941,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
941941 CAmount mempoolRejectFee = pool.GetMinFee (GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ).GetFee (nSize);
942942 if (mempoolRejectFee > 0 && nFees < mempoolRejectFee) {
943943 return state.DoS (0 , false , REJECT_INSUFFICIENTFEE, " mempool min fee not met" , false , strprintf (" %d < %d" , nFees, mempoolRejectFee));
944- } else if (GetBoolArg (" -relaypriority" , true ) && nFees < ::minRelayTxFee.GetFee (nSize) && !AllowFree (view.GetPriority (tx, chainActive.Height () + 1 ))) {
944+ } else if (GetBoolArg (" -relaypriority" , DEFAULT_RELAYPRIORITY ) && nFees < ::minRelayTxFee.GetFee (nSize) && !AllowFree (view.GetPriority (tx, chainActive.Height () + 1 ))) {
945945 // Require that free transactions have sufficient priority to be mined in the next block.
946946 return state.DoS (0 , false , REJECT_INSUFFICIENTFEE, " insufficient priority" );
947947 }
@@ -963,7 +963,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
963963 nLastTime = nNow;
964964 // -limitfreerelay unit is thousand-bytes-per-minute
965965 // At default rate it would take over a month to fill 1GB
966- if (dFreeCount >= GetArg (" -limitfreerelay" , 15 )* 10 * 1000 )
966+ if (dFreeCount >= GetArg (" -limitfreerelay" , DEFAULT_LIMITFREERELAY) * 10 * 1000 )
967967 return state.DoS (0 , false , REJECT_INSUFFICIENTFEE, " rate limited free transaction" );
968968 LogPrint (" mempool" , " Rate limit dFreeCount: %g => %g\n " , dFreeCount, dFreeCount+nSize);
969969 dFreeCount += nSize;
@@ -1436,7 +1436,7 @@ void Misbehaving(NodeId pnode, int howmuch)
14361436 return ;
14371437
14381438 state->nMisbehavior += howmuch;
1439- int banscore = GetArg (" -banscore" , 100 );
1439+ int banscore = GetArg (" -banscore" , DEFAULT_BANSCORE_THRESHOLD );
14401440 if (state->nMisbehavior >= banscore && state->nMisbehavior - howmuch < banscore)
14411441 {
14421442 LogPrintf (" %s: %s (%d -> %d) BAN THRESHOLD EXCEEDED\n " , __func__, state->name , state->nMisbehavior -howmuch, state->nMisbehavior );
@@ -3605,7 +3605,7 @@ bool InitBlockIndex(const CChainParams& chainparams)
36053605 return true ;
36063606
36073607 // Use the provided setting for -txindex in the new database
3608- fTxIndex = GetBoolArg (" -txindex" , false );
3608+ fTxIndex = GetBoolArg (" -txindex" , DEFAULT_TXINDEX );
36093609 pblocktree->WriteFlag (" txindex" , fTxIndex );
36103610 LogPrintf (" Initializing databases...\n " );
36113611
@@ -3936,7 +3936,7 @@ std::string GetWarnings(const std::string& strFor)
39363936 if (!CLIENT_VERSION_IS_RELEASE)
39373937 strStatusBar = _ (" This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" );
39383938
3939- if (GetBoolArg (" -testsafemode" , false ))
3939+ if (GetBoolArg (" -testsafemode" , DEFAULT_TESTSAFEMODE ))
39403940 strStatusBar = strRPC = " testsafemode enabled" ;
39413941
39423942 // Misc warnings like out of disk space and clock is wrong
0 commit comments