Skip to content

Conversation

willcl-ark
Copy link
Member

Fixes #26797

Permit nodes to use -mintxfee=0. Values below 0 are handled by the ParseMoney() check.

Fixes bitcoin#26797

Permit nodes to use a mintxfee of `0` if they choose.
Values below 0 are handled by the ParseMoney() check.
@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 23, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK MarcoFalke, john-moffett

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

No conflicts as of last run.

@maflcko
Copy link
Member

maflcko commented Jan 23, 2023

review ACK f11eb1f

With the rationale copied from my comments in #26797

Looks like the 0 check was added in 000dc55 for no reason?

(Maybe it was added as belt-and-suspenders for calls that set GMF_BLOCK, but none exist at that commit 🤷‍♂️ )

Even if this is only useful for testing, handling 0 different from 0.00000001 (or so) seems odd

Copy link
Contributor

@john-moffett john-moffett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f11eb1f

No reason not to have this, since you can set -blockmintxfee to zero:

bitcoin/src/init.cpp

Lines 985 to 989 in a62231b

if (args.IsArgSet("-blockmintxfee")) {
if (!ParseMoney(args.GetArg("-blockmintxfee", ""))) {
return InitError(AmountErrMsg("blockmintxfee", args.GetArg("-blockmintxfee", "")));
}
}

I tested by doing a sendtoaddress with zero fee and it succeeded on this branch and failed on master (since I had to set a nonzero feerate).

@fanquake fanquake merged commit f1b5d6b into bitcoin:master Jan 24, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jan 24, 2023
f11eb1f wallet: permit mintxfee=0 (willcl-ark)

Pull request description:

  Fixes bitcoin#26797

  Permit nodes to use `-mintxfee=0`. Values below 0 are handled by the ParseMoney() check.

ACKs for top commit:
  MarcoFalke:
    review ACK f11eb1f
  john-moffett:
    ACK f11eb1f

Tree-SHA512: 3bf50362bced4fee8e3a846cfb46f1c65dd607c9c824aa3f8c52294371b0646d167a04772d5302bdbee35bbaf407ef0aa634228f70e522c3e423f4213b4ae071
@bitcoin bitcoin locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bitcoin Core startup is interrupted if there is the setting mintxfee=0 in bitcoin.conf
5 participants