Skip to content

Commit

Permalink
fix: bump taproot input size by 0.5B
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcrazycoder committed Oct 13, 2023
1 parent 1a7ae66 commit e2dcc2d
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 e2dcc2d

Please sign in to comment.