1
0

Qt: FeerateEdit.get_amount now returns sat/byte

This commit is contained in:
SomberNight
2018-06-04 21:17:25 +02:00
parent 9788ca0250
commit 792c248919
2 changed files with 4 additions and 6 deletions

View File

@@ -121,9 +121,7 @@ class FeerateEdit(BTCAmountEdit):
def get_amount(self):
sat_per_byte_amount = BTCAmountEdit.get_amount(self)
if sat_per_byte_amount is None:
return None
return 1000 * sat_per_byte_amount
return quantize_feerate(sat_per_byte_amount)
def setAmount(self, amount):
amount = quantize_feerate(amount)