1
0

follow-up prev: fix bug in fee_to_depth, and typo and tests

This commit is contained in:
SomberNight
2018-07-14 18:54:27 +02:00
parent b8ab36546d
commit 8bb59fcc3c
2 changed files with 4 additions and 5 deletions

View File

@@ -321,8 +321,6 @@ class SimpleConfig(PrintError):
depth += s
if fee <= target_fee:
break
else:
return 0
return depth
def depth_to_fee(self, slider_pos) -> int:
@@ -333,7 +331,7 @@ class SimpleConfig(PrintError):
@impose_hard_limits_on_fee
def depth_target_to_fee(self, target: int) -> int:
"""Returns fee in sat/kbyte.
target: desired mempool depth in sat/vbyte
target: desired mempool depth in vbytes
"""
depth = 0
for fee, s in self.mempool_fees: