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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user