Skip to content

Add ancestor package computation to CanonicalView#2164

Open
aagbotemi wants to merge 3 commits intobitcoindevkit:masterfrom
aagbotemi:feat/ancestor-bump-fee
Open

Add ancestor package computation to CanonicalView#2164
aagbotemi wants to merge 3 commits intobitcoindevkit:masterfrom
aagbotemi:feat/ancestor-bump-fee

Conversation

@aagbotemi
Copy link
Copy Markdown
Contributor

@aagbotemi aagbotemi commented Mar 24, 2026

Description

Add ancestor package computation to CanonicalView, enabling callers
to determine how much extra fee a child transaction must pay to bring
its unconfirmed ancestor package up to a target feerate.

Closes #2163

Changelog notice

  • Added AncestorPackage struct for aggregated unconfirmed ancestor fee and weight data
  • Added CanonicalView::ancestor_packages() for ancestor-aware fee computation
  • Added CanonicalView::aggregate_ancestor_package() for deduplicated ancestor computation across multiple outpoints

Checklists

All Submissions:

  • I followed the contribution guidelines
  • I've added tests for the new feature
  • I've added docs for the new feature
  • I'm linking the issue being fixed by this PR

@aagbotemi aagbotemi force-pushed the feat/ancestor-bump-fee branch from eb75bb2 to 350cf6e Compare March 25, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module-blockchain new feature New feature or request

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Add ancestor package computation to CanonicalView

2 participants