-acceptnonstxtxn
to default to 0 on testnet, matching the other chains. Allowing non-standard txs on testnet by default contributed to the difficulties RSK described in #26348: “We see that there are two script paths and, to reduce the script size, a single CHECKMULTISIG is used for the two paths, separating the signer count from the CHECKMULTISIG opcode. This script worked on testnet, because it lacks the standard checks performed in Mainnet.”
test: default acceptnonstdtxn=0 on all chains #28354
pull ajtowns wants to merge 2 commits into bitcoin:master from ajtowns:202308-testnet-std changing 6 files +10 −9-
ajtowns commented at 5:24 am on August 28, 2023: contributorChanges
-
DrahtBot commented at 5:24 am on August 28, 2023: contributor
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, sipa, instagibbs, theStack If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #28207 (mempool: Persist with XOR by MarcoFalke)
- #28132 (policy: Enable full-rbf by default by petertodd)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
in src/init.cpp:588 in 1dcf22188a outdated
584@@ -585,7 +585,7 @@ void SetupServerArgs(ArgsManager& argsman) 585 586 SetupChainParamsBaseOptions(argsman); 587 588- argsman.AddArg("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)", "testnet/regtest only; ", !testnetChainParams->RequireStandard()), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY); 589+ argsman.AddArg("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)", "signet/testnet/regtest only; ", DEFAULT_ACCEPT_NON_STD_TXN), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
maflcko commented at 5:55 am on August 28, 2023:0 argsman.AddArg("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (test networks only; default: %u)", DEFAULT_ACCEPT_NON_STD_TXN), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
nit: Not sure if every test-only setting must enumerate all test-networks. Should be sufficient if
-chain
does it, no?
ajtowns commented at 12:11 pm on August 28, 2023:Donemaflcko commented at 5:55 am on August 28, 2023: memberlgtm ACK 1dcf22188a0c81b707c8056b3538c6bd47227a14ajtowns force-pushed on Aug 28, 2023config: default acceptnonstdtxn=0 on all chains
Previously, the default for acceptnonstdtxn defaulted to 0 on all chains except testnet. Change this to be consistent across all chains, and remove the parameter from chainparams entirely.
doc: Release notes for testnet defaulting to -acceptnonstdtxn=0 13eb8aa572ajtowns force-pushed on Aug 28, 2023maflcko commented at 1:33 pm on August 28, 2023: memberlgtm ACK 13eb8aa572644a53ae0d631916cb4cbc273a92d1
I think the pull request title should start with
policy:
, ortest:
, no?ajtowns renamed this:
config: default acceptnonstdtxn=0 on all chains
test: default acceptnonstdtxn=0 on all chains
on Aug 28, 2023DrahtBot added the label Tests on Aug 28, 2023sipa commented at 3:00 pm on August 28, 2023: memberutACK 13eb8aa572644a53ae0d631916cb4cbc273a92d1instagibbs commented at 4:22 pm on August 28, 2023: membertheStack approvedtheStack commented at 11:57 pm on August 28, 2023: contributorCode-review ACK 13eb8aa572644a53ae0d631916cb4cbc273a92d1fanquake merged this on Aug 29, 2023fanquake closed this on Aug 29, 2023
glozow commented at 8:54 am on August 29, 2023: memberACK 13eb8aa572644a53ae0d631916cb4cbc273a92d1jonatack commented at 5:30 pm on August 30, 2023: contributorPost-merge ACK.Frank-GER referenced this in commit 81325b7eb9 on Sep 8, 2023
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me