Non-CLEANSTACK and non-SIGPUSHONLY transactions are currently being accepted into the mempool when standardness checks are disabled with -promiscuousmempoolflags. This diff updates the Mandatory script flags to avoid this issue. Updated abc-mempool-accept-txn.py to test the current state of the mempool acceptance rules when standardness checks are disabled.
Details
- Reviewers
deadalnix Mengerian - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) Restricted Project - Maniphest Tasks
- T653: Clean up past upgrades
test_runner abc-mempool-accept-txn
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4890 Build 7843: Bitcoin ABC Buildbot (legacy) Build 7842: arc lint + arc unit
Event Timeline
While this is good to do per se, I'd rather not do that when everybody is trying to get the features for the May's upgrade in place. Please request review for this after Feb, 15.
src/test/checkdatasig_tests.cpp | ||
---|---|---|
71 ↗ | (On Diff #7195) | You should change flagset instead. |
src/test/sigopcount_tests.cpp | ||
33 ↗ | (On Diff #7195) | This lead me to think that CHECKDATASIG is not a standard flag either at the moment. This sounds like a logical first step before making it mandatory. |
src/test/sigopcount_tests.cpp | ||
---|---|---|
33 ↗ | (On Diff #7195) | At least regarding mempool acceptance, CHECKDATASIG is standard because of the activation code there that forces this flag. Making it mandatory automatically sets it in the standard flag. Is there any practical reasoning for breaking it in two steps? |
src/script/standard.h | ||
---|---|---|
37 | While you're in here, it seems this comment should be updated to remove the parts about P2SH, etc. | |
47 | Following on from Amaury's comments, it seems the SCRIPT_ENABLE_CHECKDATASIG is out of place here. It is not a "VERIFY" flag, it's an "ENABLE" flag... Ie, it permits previously disallowed transactions. All the other flags do the opposite. So I don't think it should be added here. |
src/script/standard.h | ||
---|---|---|
47 | We were discussing this off-phab a bit today. I think it's good to include here since MANDATORY_SCRIPT_VERIFY_FLAGS has the function of deciding whether or not to ban a peer, and having it in the ATMP-activated flags means you will sometimes ban peers who send CDS transactions. Namely if you're doing IBD and still pre-magnetic anomaly, you don't want to be banning peers who send a CDS transaction to you.. |