LedgerHQ / lib-ledger-core

MIT License
79 stars 83 forks source link

Use real output script length in tx size estimation #897

Closed viktorb-ledger closed 2 years ago

viktorb-ledger commented 2 years ago

Use the output script size in tx size estimation (instead of const values). This modifies the tx fee: P2WPKH becomes a bit cheaper, P2WSH and P2TR - a bit more expensive but broadcastable.