1
0

network: don't save negative ETA fee estimates

-1 means bitcoind could not give an estimate
This commit is contained in:
SomberNight
2018-10-09 12:03:38 +02:00
parent 508793b010
commit cc18f66793
3 changed files with 7 additions and 4 deletions

View File

@@ -357,8 +357,9 @@ class Network(PrintError):
self.notify('fee_histogram')
for i, task in fee_tasks:
fee = int(task.result() * COIN)
self.config.update_fee_estimates(i, fee)
self.print_error("fee_estimates[%d]" % i, fee)
if fee < 0: continue
self.config.update_fee_estimates(i, fee)
self.notify('fee')
def get_status_value(self, key):