ThomasV
6bdd8b87a0
lnwatcher simplification: remove ctn tests and pubkeys
2018-11-05 20:18:50 +01:00
ThomasV
377210bc6f
add more fields to list_channels
2018-11-05 20:18:49 +01:00
ThomasV
89460aecd8
aiosafe: define user visible exception class
2018-11-05 20:18:49 +01:00
ThomasV
297c43863c
lnbase: propagate error messages received in on_error to their relevant coroutines
2018-11-05 20:18:48 +01:00
ThomasV
607eda3a29
create sweep transaction outside of lnwatcher
2018-11-05 20:18:48 +01:00
SomberNight
3e1862bb94
fix race between lnwatcher/lnworker
...
channels were sometimes not getting re-established
2018-11-05 20:18:47 +01:00
SomberNight
8a14993f9b
fix tests
2018-11-05 20:18:47 +01:00
SomberNight
714b0858f1
lnbase: Peer handles its own disconnection instead of lnworker
2018-11-05 20:18:46 +01:00
SomberNight
8967b5848e
follow-up prev: avoid storage key collision with old 'lightning_privkey'
2018-11-05 20:18:46 +01:00
SomberNight
3b938160d1
make key derivation reasonable
...
no more hardcoded secrets, no more key-reuse
2018-11-05 20:18:45 +01:00
Janus
0a67872e83
fix lnwatcher for channels initiated by remote
2018-11-05 20:18:45 +01:00
SomberNight
d12107e743
lnutil: missing import
2018-11-05 20:18:45 +01:00
Janus
d2249dc9c3
lnhtlc: don't save FeeUpdates to disk, only keep FeeUpdate in memory while in progress
2018-11-05 20:18:44 +01:00
Janus
6be8b5994a
ln: fix opening of channels (NameErrors)
2018-11-05 20:18:44 +01:00
Janus
7d5e1a0932
lnbase: update gui after accomodating channel opening request
2018-11-05 20:18:43 +01:00
Janus
77479068c5
accept channel opening requests initiated by remote
2018-11-05 20:18:43 +01:00
SomberNight
041e84109c
lnchannelverifier: (minor) use named fields of namedtuple
2018-11-05 20:18:42 +01:00
SomberNight
4bd99243ff
fix lnworker.choose_preferred_address
2018-11-05 20:18:42 +01:00
Janus
ef67f1e18a
new network API: use broadcast_transaction with run_from_other_thread
2018-11-05 20:18:41 +01:00
Janus
11a528c68a
lnhtlc: multiply weight by feerate before rounding
...
This resolves the error formerly manifested as:
Traceback (most recent call last):
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/packages/jsonrpclib/SimpleJSONRPCServer.py", line 376, in _dispatch
return func(*params)
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/electrum/daemon.py", line 292, in run_cmdline
result = func(*args, **kwargs)
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/electrum/commands.py", line 87, in func_wrapper
return func(*args, **kwargs)
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/electrum/commands.py", line 697, in lnpay
return f.result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/electrum/lnbase.py", line 887, in pay
sig_64, htlc_sigs = chan.sign_next_commitment()
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/electrum/lnhtlc.py", line 281, in sign_next_commitment
htlc_tx = make_htlc_tx_with_open_channel(self, *args)
File "/home/janus/Skrivebord/lightning-rfc/tools/electrum/electrum/lnutil.py", line 262, in make_htlc_tx_with_open_channel
commit.txid(), commit.htlc_output_indices[original_htlc_output_index],
KeyError: 0
2018-11-05 20:18:41 +01:00
Janus
cfc566c93c
lnworker.pay(): lightning-integration support
2018-11-05 20:18:40 +01:00
Janus
e3d7cf7035
lnhtlc: generalize balance/pending_commitment code over htlc direction
2018-11-05 20:18:40 +01:00
Janus
91a319ec1c
lnworker: add missing import
2018-11-05 20:18:40 +01:00
Janus
c8a00f7ccf
lnbase: remove code duplication by introducing send_commitment(chan)
2018-11-05 20:18:39 +01:00
Janus
da684b2e97
lnbase: remove unnecessary branching and duplicated code in receive_commitment_revoke_ack
2018-11-05 20:18:39 +01:00
Janus
290a54e284
lnhtlc: save settled or failed htlcs
2018-11-05 20:18:38 +01:00
Janus
4b2fa6a828
move connection string decoding to lnworker, fix test_lnutil
2018-11-05 20:18:38 +01:00
Janus
086acc43a2
qt channels_list: min width, not fixed with (for hiDPI displays), use OK as default button
2018-11-05 20:18:37 +01:00
Janus
b7e1748a17
ecc_fast: require libsecp256k1 on lightning, channel graph breaks electrum without
2018-11-05 20:18:37 +01:00
Janus
dd576df67e
commands: add dumpgraph command to see which nodes electrum knows about
2018-11-05 20:18:36 +01:00
ThomasV
5c1cc0ed8f
avoid code duplication between methods that send channel updates
2018-11-05 20:18:35 +01:00
Janus
634c39b6b0
ln: commit fee updates as soon as possible
2018-11-05 20:18:35 +01:00
Janus
308eacbdc3
ln fees: avoid resending same fee update before it has been committed to, docs
2018-11-05 20:18:35 +01:00
ThomasV
277ad65ba1
lnwatcher: fix parameters to broadcast_transaction
2018-11-05 20:18:34 +01:00
Janus
2d092a0835
lnhtlc: decrease next_htlc_id counter when removing htlcs when saving
2018-11-05 20:18:34 +01:00
ThomasV
eb8ad3f3a5
simplify syntax
2018-11-05 20:18:33 +01:00
Janus
dfea7ca961
ln: don't save htlcs that are not locked in
2018-11-05 20:18:33 +01:00
Janus
51c34fd089
lnhtlc: bip69 ordering of htlc signatues we generate
2018-11-05 20:18:32 +01:00
Janus
a028af9dec
ln: avoid duplicated htlc filter code, support multiple htlcs better
2018-11-05 20:18:32 +01:00
Janus
67734d5db2
lnutil: remove LI01 sort after Tx.from_io: fixup after rebase on da9d1e6001
2018-11-05 20:18:31 +01:00
Janus
0e0f8a7d8f
avoid reading from queues concurrently in pay()
2018-11-05 20:18:31 +01:00
ThomasV
1d9ea1935e
add pong handler to reduce verbosity
2018-11-05 20:18:31 +01:00
Janus
75feba4b96
keep htlc history in case a htlc fails
2018-11-05 20:18:30 +01:00
Janus
0b2823be02
add command to clear ln blacklist, prevent error in pay() from killing Peer
2018-11-05 20:18:30 +01:00
SomberNight
6f3a3e0f1a
lnchannelverifier: some clean-up
2018-11-05 20:18:29 +01:00
SomberNight
2d24ac150a
fix lnwatcher: network triggers were renamed
2018-11-05 20:18:29 +01:00
SomberNight
af16e32257
rename LNChanAnnVerifier
2018-11-05 20:18:28 +01:00
SomberNight
2ef92a371f
fix prev
2018-11-05 20:18:28 +01:00
ThomasV
be53041966
lnbase: save_channel in revoke
2018-11-05 20:18:27 +01:00
ThomasV
4e68befcf8
fix: broadcast_transaction from non network thread
2018-11-05 20:18:27 +01:00