Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,824 Lines • ▼ Show 20 Lines | if (gArgs.IsArgSet("-dustrelayfee")) { | ||||
return InitError(AmountErrMsg("dustrelayfee", | return InitError(AmountErrMsg("dustrelayfee", | ||||
gArgs.GetArg("-dustrelayfee", ""))); | gArgs.GetArg("-dustrelayfee", ""))); | ||||
} | } | ||||
dustRelayFee = CFeeRate(n); | dustRelayFee = CFeeRate(n); | ||||
} | } | ||||
fRequireStandard = | fRequireStandard = | ||||
!gArgs.GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()); | !gArgs.GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()); | ||||
if (chainparams.RequireStandard() && !fRequireStandard) { | if (!chainparams.IsTestChain() && !fRequireStandard) { | ||||
return InitError( | return InitError( | ||||
strprintf("acceptnonstdtxn is not currently supported for %s chain", | strprintf("acceptnonstdtxn is not currently supported for %s chain", | ||||
chainparams.NetworkIDString())); | chainparams.NetworkIDString())); | ||||
} | } | ||||
nBytesPerSigOp = gArgs.GetArg("-bytespersigop", nBytesPerSigOp); | nBytesPerSigOp = gArgs.GetArg("-bytespersigop", nBytesPerSigOp); | ||||
if (!g_wallet_init_interface.ParameterInteraction()) { | if (!g_wallet_init_interface.ParameterInteraction()) { | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 757 Lines • Show Last 20 Lines |