Browse Source
add command to clear ln blacklist, prevent error in pay() from killing Peer
regtest_lnd
Janus
7 years ago
committed by
SomberNight
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
4 additions and
2 deletions
-
electrum/commands.py
-
electrum/lnbase.py
|
|
@ -797,6 +797,10 @@ class Commands: |
|
|
|
self.network.config.fee_estimates = ast.literal_eval(fees) |
|
|
|
self.network.notify('fee') |
|
|
|
|
|
|
|
@command('n') |
|
|
|
def clear_ln_blacklist(self): |
|
|
|
self.network.path_finder.blacklist.clear() |
|
|
|
|
|
|
|
def eval_bool(x: str) -> bool: |
|
|
|
if x == 'false': return False |
|
|
|
if x == 'true': return True |
|
|
|
|
|
@ -826,9 +826,7 @@ class Peer(PrintError): |
|
|
|
|
|
|
|
self.update_fail_htlc[payload["channel_id"]].put_nowait("HTLC failure with code {} ({})".format(code, code_name)) |
|
|
|
|
|
|
|
@aiosafe |
|
|
|
async def pay(self, path, chan, amount_msat, payment_hash, pubkey_in_invoice, min_final_cltv_expiry): |
|
|
|
# FIXME aiosafe is breaking "raise PaymentFailure" |
|
|
|
assert chan.get_state() == "OPEN", chan.get_state() |
|
|
|
assert amount_msat > 0, "amount_msat is not greater zero" |
|
|
|
|
|
|
|