Commit graph

11175 commits

Author SHA1 Message Date
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
Janus
224226f427 ln: cooperative close with remote peer initiating 2019-08-20 09:03:10 +02:00
Janus
ff902a55ee lnhtlc: don't settle htlc with HTLCStateMachine too early 2019-08-20 09:03:10 +02:00
Janus
d5d9270d0c lnhtlc: save logs and feeupdates 2019-08-20 09:03:10 +02:00
Janus
eca5545004 lnhtlc: don't throw away fee updates or htlcs
also add inject_fees debug command
2019-08-20 09:03:10 +02:00
Janus
02eca03486 lnhtlc: cleanup and save settled htlcs 2019-08-20 09:03:10 +02:00
Janus
6f5209ef85 lnhtlc: test that sent amount is received 2019-08-20 09:03:10 +02:00
Janus
261fefb6f3 lnwatcher rebased 2019-08-20 09:03:10 +02:00
Janus
3eabd70df5 lightning: post aiorpcx rebase fixup 2019-08-20 09:03:10 +02:00
SomberNight
7edba63341 remove our closed channels from channeldb. note some FIXMEs
payment were attempting to use the closed channels.
2019-08-20 09:03:10 +02:00
SomberNight
08d20ce187 lnbase: fix payments 2019-08-20 09:03:10 +02:00
SomberNight
1b030fca78 rebase follow-up: use namedtuples from master in new code (TxOutput, TxMinedStatus) 2019-08-20 09:03:10 +02:00
SomberNight
bab9f163f7 decode onion errors to failure message type 2019-08-20 09:03:10 +02:00
SomberNight
b85aea1541 qt: pay_lightning_invoice - attempt paying multiple times in case of failure 2019-08-20 09:03:10 +02:00
SomberNight
4d1785799b lnbase.pay: test if htlc can be added 2019-08-20 09:03:10 +02:00
SomberNight
9827cda9b1 qt send tab: hide fee fields when paying with lightning 2019-08-20 09:03:10 +02:00
SomberNight
2b4a436572 qt open channel dialog: allow pasting invoices to open a channel 2019-08-20 09:03:10 +02:00