SomberNight
d44afd9633
fix tests
2019-08-20 09:03:10 +02:00
SomberNight
707c7d569d
lnbase: Peer handles its own disconnection instead of lnworker
2019-08-20 09:03:10 +02:00
SomberNight
f3dd7ce615
follow-up prev: avoid storage key collision with old 'lightning_privkey'
2019-08-20 09:03:10 +02:00
SomberNight
17457327ef
make key derivation reasonable
...
no more hardcoded secrets, no more key-reuse
2019-08-20 09:03:10 +02:00
Janus
5859054095
fix lnwatcher for channels initiated by remote
2019-08-20 09:03:10 +02:00
SomberNight
fb8deecb57
lnutil: missing import
2019-08-20 09:03:10 +02:00
Janus
c5b7deac6b
lnhtlc: don't save FeeUpdates to disk, only keep FeeUpdate in memory while in progress
2019-08-20 09:03:10 +02:00
Janus
8bd6dc2425
ln: fix opening of channels (NameErrors)
2019-08-20 09:03:10 +02:00
Janus
bdf36ac649
lnbase: update gui after accomodating channel opening request
2019-08-20 09:03:10 +02:00
Janus
0405f0d9ad
accept channel opening requests initiated by remote
2019-08-20 09:03:10 +02:00
SomberNight
b18a17ef79
lnchannelverifier: (minor) use named fields of namedtuple
2019-08-20 09:03:10 +02:00
SomberNight
c430b39b7d
fix lnworker.choose_preferred_address
2019-08-20 09:03:10 +02:00
Janus
139f773c2e
new network API: use broadcast_transaction with run_from_other_thread
2019-08-20 09:03:10 +02:00
Janus
1a7b06b690
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
2019-08-20 09:03:10 +02:00
Janus
646881f437
lnworker.pay(): lightning-integration support
2019-08-20 09:03:10 +02:00
Janus
a071aafcc7
lnhtlc: generalize balance/pending_commitment code over htlc direction
2019-08-20 09:03:10 +02:00
Janus
c8dc17012f
lnworker: add missing import
2019-08-20 09:03:10 +02:00
Janus
cef3a30c5a
lnbase: remove code duplication by introducing send_commitment(chan)
2019-08-20 09:03:10 +02:00
Janus
addd8928bf
lnbase: remove unnecessary branching and duplicated code in receive_commitment_revoke_ack
2019-08-20 09:03:10 +02:00
Janus
e5f42a3973
lnhtlc: save settled or failed htlcs
2019-08-20 09:03:10 +02:00
Janus
efc8d50570
move connection string decoding to lnworker, fix test_lnutil
2019-08-20 09:03:10 +02:00
Janus
24cf4e7eb0
qt channels_list: min width, not fixed with (for hiDPI displays), use OK as default button
2019-08-20 09:03:10 +02:00
Janus
9862fe5c0c
ecc_fast: require libsecp256k1 on lightning, channel graph breaks electrum without
2019-08-20 09:03:10 +02:00
Janus
1988b552e1
commands: add dumpgraph command to see which nodes electrum knows about
2019-08-20 09:03:10 +02:00
Janus
6bec42d18a
requirements: require bitstring for lnaddr, cryptography for lnbase
2019-08-20 09:03:10 +02:00
ThomasV
75dd56eff0
avoid code duplication between methods that send channel updates
2019-08-20 09:03:10 +02:00
Janus
5e7117dddd
ln: commit fee updates as soon as possible
2019-08-20 09:03:10 +02:00
Janus
5753cf9e05
ln fees: avoid resending same fee update before it has been committed to, docs
2019-08-20 09:03:10 +02:00
ThomasV
22b06ddec2
lnwatcher: fix parameters to broadcast_transaction
2019-08-20 09:03:10 +02:00
Janus
d07adda3c0
lnhtlc: decrease next_htlc_id counter when removing htlcs when saving
2019-08-20 09:03:10 +02:00
ThomasV
1127d3f467
simplify syntax
2019-08-20 09:03:10 +02:00
Janus
878dc17acb
ln: don't save htlcs that are not locked in
2019-08-20 09:03:10 +02:00
Janus
2c6925e526
lnhtlc: bip69 ordering of htlc signatues we generate
2019-08-20 09:03:10 +02:00
Janus
e23e0d6c6e
ln: avoid duplicated htlc filter code, support multiple htlcs better
2019-08-20 09:03:10 +02:00
Janus
e18a3b5a3d
lnutil: remove LI01 sort after Tx.from_io: fixup after rebase on da9d1e6001
2019-08-20 09:03:10 +02:00
Janus
50b3bc939c
avoid reading from queues concurrently in pay()
2019-08-20 09:03:10 +02:00
ThomasV
a54631b873
add pong handler to reduce verbosity
2019-08-20 09:03:10 +02:00
Janus
a04e37d050
keep htlc history in case a htlc fails
2019-08-20 09:03:10 +02:00
Janus
cf4f0c5d3a
add command to clear ln blacklist, prevent error in pay() from killing Peer
2019-08-20 09:03:10 +02:00
SomberNight
200b012e57
lnchannelverifier: some clean-up
2019-08-20 09:03:10 +02:00
SomberNight
c91fe27e7d
fix lnwatcher: network triggers were renamed
2019-08-20 09:03:10 +02:00
SomberNight
d29191b010
rename LNChanAnnVerifier
2019-08-20 09:03:10 +02:00
SomberNight
fc0009206b
fix prev
2019-08-20 09:03:10 +02:00
ThomasV
31b1243f25
lnbase: save_channel in revoke
2019-08-20 09:03:10 +02:00
ThomasV
8df569962d
fix: broadcast_transaction from non network thread
2019-08-20 09:03:10 +02:00
ThomasV
180eb6d101
partial revert of df24fb00578309b5db27876769306196238ec3f2: process_message should not be async
2019-08-20 09:03:10 +02:00
ThomasV
dc0f03de99
channel verifier: fix request_chunk args
2019-08-20 09:03:10 +02:00
ThomasV
08448fd2f0
add lnworker in start_network
2019-08-20 09:03:10 +02:00
ThomasV
5c5982d9f7
lnwatcher: do not assume addr_sync.synchronizer
2019-08-20 09:03:10 +02:00
Janus
cc7ef49c43
lnhtlc: also check received htlcs when validating commitment sigs
2019-08-20 09:03:10 +02:00