Skip to content

feat!: fee calculation now takes into account reference script size #1559

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

Merged

Conversation

AngelCastilloB
Copy link
Member

Our fee calculation algorithm currently doesn't take into account script ref byte sizes. This PR makes a few changes to the fee calculation algorithm to include ref script into this calculation

@AngelCastilloB AngelCastilloB force-pushed the feat/lw-12066-fee-calculation-for-spending-refer-script branch from baad60d to abf7808 Compare January 16, 2025 03:05
BREAKING CHANGE: minFee now takes resolvedInputs and ProtocolParametersForInputSelection as arguments
@AngelCastilloB AngelCastilloB force-pushed the feat/lw-12066-fee-calculation-for-spending-refer-script branch from abf7808 to 33527d5 Compare January 16, 2025 04:04
Copy link
Member

@mkazlauskas mkazlauskas left a comment

Choose a reason for hiding this comment

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

Nice work! 🚀

@rhyslbw rhyslbw self-requested a review January 16, 2025 09:02
Copy link
Member

@rhyslbw rhyslbw left a comment

Choose a reason for hiding this comment

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

Great work @AngelCastilloB 🧙

@AngelCastilloB AngelCastilloB merged commit 1dda3e5 into master Jan 16, 2025
5 of 6 checks passed
@AngelCastilloB AngelCastilloB deleted the feat/lw-12066-fee-calculation-for-spending-refer-script branch January 16, 2025 09:06
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.

3 participants