Commit graph

1589 commits

Author SHA1 Message Date
Janus
935f11522d lightning.json with gossip_queries 2019-08-20 09:03:10 +02:00
SomberNight
8ffeb79d01 constants.py: remove duplicate Simnet declaration 2019-08-20 09:03:10 +02:00
Janus
9853cc6f31 ln: do not use mSAT accuracy for commitment fees 2019-08-20 09:03:10 +02:00
Janus
66e7b4d250 ln: fundee must commit to fee first 2019-08-20 09:03:10 +02:00
SomberNight
fb00e29f1c bolt-08 handshake must use ephemeral key 2019-08-20 09:03:10 +02:00
SomberNight
fca5c9379f avoid crash if don't have peer for open channel 2019-08-20 09:03:10 +02:00
Janus
74b180a4e6 use correct dust limit for their to_local/to_remote outputs 2019-08-20 09:03:10 +02:00
Janus
478e484c54 ln: initialize genesis with object, fix method name typo, use depth_target_to_fee 2019-08-20 09:03:10 +02:00
ThomasV
bb4aa1e135 lnwatcher: pass address instead of wallet reference 2019-08-20 09:03:10 +02:00
ThomasV
bc28edf178 encapsulate funding_address_for_channel 2019-08-20 09:03:10 +02:00
SomberNight
8e63471d69 allow paying invoice without amount. min feerate 253 sat/kw. 2019-08-20 09:03:10 +02:00
Janus
ba74844b2e lnbase: fee handling: add todo since depth_to_fee is inappropriate 2019-08-20 09:03:10 +02:00
ThomasV
21ee6f6965 asyncio: do not set event loop from wallet 2019-08-20 09:03:10 +02:00
Janus
2fd5f8613a ln: fix race in on_network_update 2019-08-20 09:03:10 +02:00
Janus
d5cb21143f ln: send update_fee on fee change, handle nodes without data_protect 2019-08-20 09:03:10 +02:00
Janus
12a02a8a1e lnrouter: ignore duplicate channel announcement 2019-08-20 09:03:10 +02:00
ThomasV
9897e41e68 remove unused method 2019-08-20 09:03:10 +02:00
SomberNight
21e907a4e3 ChannelDB: print_graph 2019-08-20 09:03:10 +02:00
SomberNight
135951a13f qt channels list: update channel when detecting close 2019-08-20 09:03:10 +02:00
SomberNight
f2242868fa qt/channels list: show error in dialog 2019-08-20 09:03:10 +02:00
SomberNight
66817d41f9 lnwatcher improvements
- only try sweeping csv-locked to_local if past timelock
- check if outputs are already spent
- no need to keep watching channels for which all outputs are spent and mined deep
2019-08-20 09:03:10 +02:00
Janus
d740475e7a move channel_state into HTLCStateMachine 2019-08-20 09:03:10 +02:00
ThomasV
3caccbebcd follow-up a7e5b9421c014fc0be72696837cb9d77519c5e03 2019-08-20 09:03:10 +02:00
ThomasV
89dfd1cc2c lightning: improve request tab layout 2019-08-20 09:03:10 +02:00
ThomasV
f2b40c69fc do not set background in frozen_style, it does not look good with dark theme 2019-08-20 09:03:10 +02:00
ThomasV
b5f0209a56 fix crash in lnworker main_loop 2019-08-20 09:03:10 +02:00
ThomasV
18bc5aa27b lightning: improve receive in Qt GUI 2019-08-20 09:03:10 +02:00
ThomasV
31b67c422b add peer suggestion to open channel dialog. move add_peer code back to lnworker constructor 2019-08-20 09:03:10 +02:00
ThomasV
2ee41975f9 add lnworker.main_loop to network.futures so it gets cancelled on exit. fix aiosafe verbosity. 2019-08-20 09:03:10 +02:00
ThomasV
44d8c8f995 diagnostic_name: convert to str 2019-08-20 09:03:10 +02:00
ThomasV
8f779f504f LNWorker: connect to multiple peers.
save exceptions in aiosafe.
enable adding peer in GUI.
2019-08-20 09:03:10 +02:00
Janus
35adc3231b lightning: fixup after rebasing on restructured master 2019-08-20 09:03:10 +02:00
ThomasV
1db7a8334a Refresh LN status in GUI using network callback. 2019-08-20 09:03:10 +02:00
ThomasV
8346e358b2 move lnaddr.py to lib 2019-08-20 09:03:10 +02:00
Janus
77e9abc655 ln: store HTLCStateMachine in lnworker.channels 2019-08-20 09:03:10 +02:00
SomberNight
0d4593eebf improve Qt Receive tab for LN payment requests 2019-08-20 09:03:10 +02:00
ThomasV
c7e47b74a9 Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2019-08-20 09:03:10 +02:00
ThomasV
61983c222a lightning: single shared instance of Watcher, ChannelDB and PathFinder 2019-08-20 09:03:10 +02:00
ThomasV
6e71340e52 do not block GUI with open_channel 2019-08-20 09:03:10 +02:00
ThomasV
40fcf58fec lightning: display remote balance in gui 2019-08-20 09:03:10 +02:00
ThomasV
bf6d28e1f0 integrate channels_list with existing framework 2019-08-20 09:03:10 +02:00
ThomasV
4fe912f4b3 qt: fix unit of lnaddr.amount 2019-08-20 09:03:10 +02:00
ThomasV
34d5f1b2e3 lightning: connect send button 2019-08-20 09:03:10 +02:00
ThomasV
12d3877873 lightning GUI: use existing receive and send tabs with lightning invoices 2019-08-20 09:03:10 +02:00
Janus
7d2a6d83d5 ln: don't make invoice if peer can't possibly pay, append _sat to sat
parameters to avoid confusion
2019-08-20 09:03:10 +02:00
ThomasV
af4f0b6daf lnworker: separate invoice creation from payment flow 2019-08-20 09:03:10 +02:00
Janus
6a8e5d5954 ln: restore functionality 2019-08-20 09:03:09 +02:00
ThomasV
762dea6593 fix amount in open_channel, add listchannels command 2019-08-20 09:03:09 +02:00
ThomasV
b71f020fc9 move on_funding_locked to lnworker 2019-08-20 09:03:09 +02:00
ThomasV
0552c61b66 lightning: add payment methods to lnworker 2019-08-20 09:03:09 +02:00