Skip to content

Test webhook on PR#33

Draft
willcl-ark wants to merge 67 commits into
masterfrom
pr-33629
Draft

Test webhook on PR#33
willcl-ark wants to merge 67 commits into
masterfrom
pr-33629

Conversation

@willcl-ark
Copy link
Copy Markdown
Owner

test webhook on a pr

sdaftuar and others added 30 commits October 14, 2025 14:03
Effectively this is treating all transactions in txgraph as being in a cluster
of size 1.
Preparatory commit to the rbf functional test, before changes are made to the
rbf rules as part of cluster mempool.
Include an adjustment to mempool_tests.cpp due to the additional memory used by
txgraph.

Includes a temporary change to the mempool_ephemeral_dust.py functional test,
due to validation checks being reordered. This change will revert once the RBF
rules are changed in a later commit.
Rather than evicting the transactions with the lowest descendant feerate,
instead evict transactions that have the lowest chunk feerate.

Once mining is implemented based on choosing transactions with highest chunk
feerate (see next commit), mining and eviction will be opposites, so that we
will evict the transactions that would be mined last.
The addition of a cluster size limit makes the CPFP carveout rule useless,
because carveout cannot be used to bypass the cluster size limit. Remove this
policy rule and update tests to no longer rely on the behavior.
With a total ordering on mempool transactions, we are now able to calculate a
transaction's mining score at all times. Use this to improve the RBF logic:

- we no longer enforce a "no new unconfirmed parents" rule

- we now require that the mempool's feerate diagram must improve in order
  to accept a replacement

- the topology restrictions for conflicts in the package rbf setting have been
  eliminated

Revert the temporary change to mempool_ephemeral_dust.py that were previously
made due to RBF validation checks being reordered.

Co-authored-by: Gregory Sanders <gsanders87@gmail.com>, glozow <gloriajzhao@gmail.com>
Previously, transaction batches were first sorted by ancestor count and then
feerate, to ensure transactions are announced in a topologically valid order,
while prioritizing higher feerate transactions. Ancestor count is a crude
topological sort criteria, so replace this with linearization order so that the
highest feerate transactions (as would be observed by the mining algorithm) are
relayed before lower feerate ones, in a topologically valid way.

This also fixes a test that only worked due to the ancestor-count-based sort
order.
The mempool clusters and linearization permit sorting the mempool topologically
without making use of ancestor counts (as long as the graph is not oversized).

Co-authored-by: Pieter Wuille <pieter@wuille.net>
In preparation for removing ancestor data from CTxMemPoolEntry, recalculate the
ancestor statistics on demand wherever needed.
The cluster limits should be sufficient.

Co-Authored-By: Gregory Sanders <gsanders87@gmail.com>
Remove a reference to GetCountWithDescendants() in preparation for removing
this function and the associated cached state from the mempool.
@willcl-ark willcl-ark force-pushed the master branch 2 times, most recently from dd7a4bd to 521a43c Compare February 16, 2026 19:46
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from 6db6066 to f3ca22a Compare March 15, 2026 04:34
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from 255c0ca to 32e1794 Compare March 23, 2026 04:30
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from 2f875ec to cb274b6 Compare April 25, 2026 04:37
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from e881736 to c8ba931 Compare May 3, 2026 05:32
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from 65e13dc to 3cbff52 Compare May 11, 2026 06:00
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from e578c28 to 2da500a Compare May 19, 2026 06:10
@willcl-ark willcl-ark force-pushed the master branch 2 times, most recently from 8263d23 to ecf2031 Compare May 21, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants