1
0

commands: clean-up inject_fees cmd

This commit is contained in:
SomberNight
2021-03-25 19:33:40 +01:00
parent f14b7d5a12
commit 5beadaab95
2 changed files with 10 additions and 9 deletions

View File

@@ -1079,9 +1079,9 @@ class Commands:
@command('n')
async def inject_fees(self, fees):
import ast
self.network.config.fee_estimates = ast.literal_eval(fees)
self.network.notify('fee')
# e.g. use from Qt console: inject_fees("{25: 1009, 10: 15962, 5: 18183, 2: 23239}")
fee_est = ast.literal_eval(fees)
self.network.update_fee_estimates(fee_est=fee_est)
@command('wn')
async def enable_htlc_settle(self, b: bool, wallet: Abstract_Wallet = None):