Skip to content

Add MaxWeight to cap transaction weight during selection#48

Open
aagbotemi wants to merge 1 commit into
bitcoindevkit:masterfrom
aagbotemi:feat/max-weight-metric
Open

Add MaxWeight to cap transaction weight during selection#48
aagbotemi wants to merge 1 commit into
bitcoindevkit:masterfrom
aagbotemi:feat/max-weight-metric

Conversation

@aagbotemi

Copy link
Copy Markdown
Contributor

Description

Adds MaxWeight<M>, a BnbMetric that wraps another metric and constrains bnb to selections whose transaction weight stays within a configurable max_weight (in weight units).

Notes for review

  • MaxWeight<M> is generic over M: BnbMetric.

@murchandamus murchandamus left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not actively contributing to this repository, so please feel free to ignore me. I noticed that this PR only adds MaxWeight for BnB, but a maximum weight would be especially relevant in the context of creating TRUC transactions that are limited to 10,000 vB or 1000 vB respectively, so it would be relevant to all appropriate for all coinselection algorithms.

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.

2 participants