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

fix(send): add witness data byte count for p2sh tx #903

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Conversation

pwltr
Copy link
Collaborator

@pwltr pwltr commented Feb 22, 2023

FeeRate was still off 2 bytes for p2sh because of missing bytes for witness data. This PR fixes that. Also simplified the calculation a bit by using a 40 WU base for all transactions. Also removes magic number recommendedBaseFee as a lower limit.

Changes

  • fix feeRate for transactions using p2sh inputs
  • remove magic number recommendedBaseFee
  • small refactor/cleanup

@pwltr pwltr requested a review from coreyphillips February 22, 2023 14:07
@pwltr pwltr merged commit 2fc35e9 into master Feb 22, 2023
@pwltr pwltr deleted the fix/feeRate branch February 22, 2023 15:54
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