Skip to content

Commit fab9b60

Browse files
author
MarcoFalke
committed
doc: Remove outdated minrelaytxfee comment
1 parent e053e05 commit fab9b60

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

contrib/devtools/check-doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
REGEX_ARG = re.compile(r'(?:map(?:Multi)?Args(?:\.count\(|\[)|Get(?:Bool)?Arg\()\"(\-[^\"]+?)\"')
2222
REGEX_DOC = re.compile(r'HelpMessageOpt\(\"(\-[^\"=]+?)(?:=|\")')
2323
# list unsupported, deprecated and duplicate args as they need no documentation
24-
SET_DOC_OPTIONAL = set(['-rpcssl', '-benchmark', '-h', '-help', '-socks', '-tor', '-debugnet', '-whitelistalwaysrelay', '-prematurewitness', '-walletprematurewitness', '-promiscuousmempoolflags', '-blockminsize', '-sendfreetransactions'])
24+
SET_DOC_OPTIONAL = set(['-rpcssl', '-benchmark', '-h', '-help', '-socks', '-tor', '-debugnet', '-whitelistalwaysrelay', '-prematurewitness', '-walletprematurewitness', '-promiscuousmempoolflags', '-blockminsize'])
2525

2626
def main():
2727
used = check_output(CMD_GREP_ARGS, shell=True)

src/init.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,14 +1030,7 @@ bool AppInitParameterInteraction()
10301030
if (nConnectTimeout <= 0)
10311031
nConnectTimeout = DEFAULT_CONNECT_TIMEOUT;
10321032

1033-
// Fee-per-kilobyte amount required for mempool acceptance and relay
1034-
// If you are mining, be careful setting this:
1035-
// if you set it to zero then
1036-
// a transaction spammer can cheaply fill blocks using
1037-
// 0-fee transactions. It should be set above the real
1038-
// cost to you of processing a transaction.
1039-
if (IsArgSet("-minrelaytxfee"))
1040-
{
1033+
if (IsArgSet("-minrelaytxfee")) {
10411034
CAmount n = 0;
10421035
if (!ParseMoney(GetArg("-minrelaytxfee", ""), n)) {
10431036
return InitError(AmountErrMsg("minrelaytxfee", GetArg("-minrelaytxfee", "")));

0 commit comments

Comments
 (0)