You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A BDK wallet should check the absolute transaction fee and free rate when creating, and/or signing a transaction PSBT. There should also be a way to change or disable this fee rate check. I suggest we should make the maximum absolute fee the same as bitcoin core (0.1 BTC), and fee rate the same as what Liana chose (1_000 sats/vb), but defaults are open for discussion.
Use case
This would prevent BDK users from accidentally creating and signing transactions with very large, unreasonable transaction fees. This feature would improve our feature parity with the bitcoin core wallet.
Describe the enhancement
A BDK wallet should check the absolute transaction fee and free rate when creating, and/or signing a transaction PSBT. There should also be a way to change or disable this fee rate check. I suggest we should make the maximum absolute fee the same as bitcoin core (0.1 BTC), and fee rate the same as what Liana chose (1_000 sats/vb), but defaults are open for discussion.
Use case
This would prevent BDK users from accidentally creating and signing transactions with very large, unreasonable transaction fees. This feature would improve our feature parity with the bitcoin core wallet.
Additional context
Discord comment from @darosior:
For what it's worth in Liana we have both an absolute fee (1BTC) and feerate (1_000 sat/vb) sanity checks: https://github.com/wizardsardine/liana/blob/7bfc53890aa1466b0fee413d7373cbd05fd22a19/src/commands/mod.rs#L213-L238. Bitcoin Core has a 0.1BTC maximum absolute fee sanity check iirc, but you can tweak it. I agree BDK should have one. Any wallet software intended to be used with real funds should have such sanity checks.
The text was updated successfully, but these errors were encountered: