w0xlt
commented at 4:51 am on July 8, 2022:
contributor
This PR adds the the bypass_csv and bypass_cltv options to testmempoolaccept RPC, making it possible to bypass CSV / CLTV execution.
For more context, check #25434#pullrequestreview-1020896809.
Since this PR is built on top of #25577, #25434 and #25532, only the last 4 commits are new here.
mempool: change `maxfeerate` to be a members of an `options` argument
`maxfeerate` becomes a member of an "options" object rather than
a positional argument.
The idea is that any new parameters in the future will also go into
options.
199b3148c0
mempool: make `test_accept` parameter explicit563dd147df
DrahtBot added the label
Mempool
on Jul 8, 2022
DrahtBot
commented at 9:36 am on July 8, 2022:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
#25577 (mempool, refactor: add MemPoolBypass by w0xlt)
#25487 ([kernel 3b/n] Decouple {Dump,Load}Mempool from ArgsManager by dongcarl)
#24007 ([mempool] allow tx replacement by smaller witness by LarryRuane)
#23897 (refactor: Move calculation logic out from CheckSequenceLocksAtTip() by hebasto)
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.
bvbfan
commented at 2:44 pm on July 8, 2022:
contributor
One small note: multi-line comments are evil. Consider a valid code
validation: add option to bypass contextual timelock checks
This is for test_accepts only, and not allowed in an actual submission
to mempool - see assert statements.
Provide an option to bypass BIP68 nSequence and nLockTime checks. This
means clients can use testmempoolaccept to check whether L2 transaction
chains (which typically have timelock conditions) are valid without
submitting them. Note that BIP112 and BIP65 are still checked since they
are script (non-contextual) checks. This does not invalidate any
signature or script caching.
Co-authored-by: glozow <gloriajzhao@gmail.com>
b70a926081
rpc: add optional bypass_timelocks for testmempoolaccept
Co-authored-by: glozow <gloriajzhao@gmail.com>
afc299806c
test: check if `bypass_{absolute,relative}_timelock` works
Test the bypass_timelock options in testmempoolaccept. This lets us
bypass BIP68 relative locktime checks (in nSequence) and absolute
locktime checks (in nLocktime).
Co-authored-by: glozow <gloriajzhao@gmail.com>
7ec6416310
test: check if bypass_timelocks do not affect scripts
OP_CSV and OP_CLTV script checks are still done,
so setting bypass_timelocks=True doesn't mean that
bad scripts pass.
Co-authored-by: glozow <gloriajzhao@gmail.com>
a006b8fd5a
validation: Add `bypass_feerate_accuracy` to `MempoolTestCriteria`20d049dd2e
I’m going to close this for now. I don’t think there is a need to have this PR open yet, when it’s building on multiple other PRs, which themselves still need conceptual review. You can always link to branches with example future changes, from the base PRs.
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-22 00:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me