Skip to content

Commit

Permalink
[unit test] subpackage evaluation and package linearization
Browse files Browse the repository at this point in the history
- package_ppfp shows benefit of assessing subpackages
- package_ppfc shows that this doesn't let us do "parent pays for
  child;" we only do this when the individual and ancestor feerates meet
mempool minimum feerate
- package_needs_reorder shows necessity of linearizing using ancestor
  set scoring. If we used the original order, we would reject
everything, even if we submit subpackages.
- package_desc_limits shows that linearization can help us pick the
  most incentive-compatible tx to accept when transactions affect each
other's eligibility (descendant package limits)
- package_confirmed_parent shows benefit of treating
  txns-already-known as "in mempool" tx
- package_with_rbf tests existing behavior that shouldn't change. Even
  though package RBF is not enabled, it's important that submitting a
transaction as part of a package does not block it from doing a normal
replacement. Otherwise we may blind ourselves to a replacement simply
because it has a child and we happened to download it as a package.

Co-authored-by: Andrew Chow <achow101@gmail.com>
  • Loading branch information
glozow and achow101 committed Nov 9, 2023
1 parent 3454807 commit 2e2c81e
Showing 1 changed file with 568 additions and 8 deletions.

0 comments on commit 2e2c81e

Please sign in to comment.