BitBoxSwiss / bitbox-wallet-app

The BitBoxApp for desktop and mobile.
https://bitbox.swiss/app
Apache License 2.0
254 stars 82 forks source link

backend/transaction: auto select highest fee for payment requests #2836

Closed Beerosagos closed 3 months ago

Beerosagos commented 3 months ago

There was a bug in the payment request implementation that didn't correctly support mempool.space fees and resulted in a fee error during the tx proposal on production environment.

This commit moves the fee target selection for payment requests in the BE and fixes the bug.

Beerosagos commented 3 months ago

@benma all done, PTAL :pray:

Beerosagos commented 3 months ago

Moved all the FeeTargets code to coins/btc/feetarget.go and added unit tests. Thanks :pray: