Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate transaction fee by applying fee rate to rounded-up vbytes #29

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

jp1ac4
Copy link
Contributor

@jp1ac4 jp1ac4 commented Oct 29, 2024

This is an attempt to resolve #26.

When calculating the implied fee of a transaction, it applies the fee rate in sat/vb to the transaction's rounded-up vbytes, including for RBF rule 4 considerations.

Copy link
Collaborator

@LLFourn LLFourn left a comment

Choose a reason for hiding this comment

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

ACK 4eae611

tests/rbf.rs Show resolved Hide resolved
@LLFourn LLFourn merged commit c22b30b into bitcoindevkit:master Oct 30, 2024
5 checks passed
@jp1ac4 jp1ac4 deleted the feerate-round-up-vbytes branch October 30, 2024 12:20
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.

Option to calculate fee based on rounded-up vbytes
2 participants