Skip to content

Commit

Permalink
fix(sdk): bump taproot input size by 0.5B (#83)
Browse files Browse the repository at this point in the history
fix: bump taproot input size by 0.5B
  • Loading branch information
iamcrazycoder authored Oct 13, 2023
1 parent 1a7ae66 commit fa769f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/fee/FeeEstimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class FeeEstimator {
private getBaseSizeByType(type: AddressFormats) {
switch (type) {
case "taproot":
return { input: 41.5, output: 43, txHeader: 10.5, witness: 66 } // witness size is different for non-default sigHash
return { input: 42, output: 43, txHeader: 10.5, witness: 66 } // witness size is different for non-default sigHash

case "segwit":
return { input: 41, output: 31, txHeader: 10.5, witness: 105 }
Expand Down

0 comments on commit fa769f6

Please sign in to comment.