Qt: FeerateEdit.get_amount now returns sat/byte
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user