1
0

wallet.get_tx_fee_warning: fix rounding error for sub-1 sat/vbyte fees

```
>>> Decimal("0.1") < 100/1000
True
```

ref https://bitcointalk.org/index.php?topic=5554840.msg65694417#msg65694417
This commit is contained in:
SomberNight
2025-08-15 18:26:19 +00:00
parent 8a8ab26d44
commit 392400295e

View File

@@ -3384,7 +3384,7 @@ class Abstract_Wallet(ABC, Logger, EventListener):
long_warning = None
short_warning = None
allow_send = True
if feerate < self.relayfee() / 1000 and not is_future_tx:
if feerate < Decimal(self.relayfee()) / 1000 and not is_future_tx:
long_warning = ' '.join([
_("This transaction requires a higher fee, or it will not be propagated by your current server."),
_("Try to raise your transaction fee, or use a server with a lower relay fee.")