SomberNight
8e63471d69
allow paying invoice without amount. min feerate 253 sat/kw.
6 years ago
Janus
2fd5f8613a
ln: fix race in on_network_update
6 years ago
Janus
d5cb21143f
ln: send update_fee on fee change, handle nodes without data_protect
6 years ago
SomberNight
135951a13f
qt channels list: update channel when detecting close
6 years ago
Janus
d740475e7a
move channel_state into HTLCStateMachine
6 years ago
ThomasV
b5f0209a56
fix crash in lnworker main_loop
6 years ago
ThomasV
31b67c422b
add peer suggestion to open channel dialog. move add_peer code back to lnworker constructor
6 years ago
ThomasV
2ee41975f9
add lnworker.main_loop to network.futures so it gets cancelled on exit. fix aiosafe verbosity.
6 years ago
ThomasV
8f779f504f
LNWorker: connect to multiple peers.
...
save exceptions in aiosafe.
enable adding peer in GUI.
6 years ago
Janus
35adc3231b
lightning: fixup after rebasing on restructured master
6 years ago
ThomasV
1db7a8334a
Refresh LN status in GUI using network callback.
6 years ago
Janus
55a7e4cec1
ln: use pending_local_commit while closing (won't be revoked)
6 years ago
SomberNight
63d2c3aaf4
lnwatcher: sweep to_remote and to_local outputs if they close
6 years ago
ThomasV
8346e358b2
move lnaddr.py to lib
6 years ago
Janus
fe973a5137
ln: avoid recursive dependencies, make new lnutil
6 years ago
Janus
7a3551b5df
ln: merge OpenChannel and HTLCStateMachine
6 years ago
Janus
42a56df996
ln: shortcut some OpenChannel fields to traversing too much
6 years ago
Janus
77e9abc655
ln: store HTLCStateMachine in lnworker.channels
6 years ago
SomberNight
0d4593eebf
improve Qt Receive tab for LN payment requests
6 years ago
ThomasV
c7e47b74a9
Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements
6 years ago
Janus
dbdabcfc5d
ln: use new non-classmethod add_signature_to_txin
6 years ago
ThomasV
8fe70fc0eb
do not set channel state in close_channel; the watcher should do it
6 years ago
ThomasV
61983c222a
lightning: single shared instance of Watcher, ChannelDB and PathFinder
6 years ago
ThomasV
df960700c9
reestablish channels in network callback
6 years ago
ThomasV
322acd93d9
channel watcher class
6 years ago
Janus
7f206d6e4c
ln: close channels
6 years ago
Janus
83c60441cf
ln: don't corrupt channels storage when multiple funding_locked are received
6 years ago
Janus
6f88c55f17
ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels
6 years ago
Janus
e9fec66eb4
ln: begin handling htlc failures
6 years ago
Janus
a106760469
ln: channel announcements
6 years ago
Janus
4d25933898
ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs
6 years ago
Janus
5ed6f79a33
ln: request_initial_sync, increase our max_htlc_value, fix receiving payment
6 years ago
ThomasV
6e71340e52
do not block GUI with open_channel
6 years ago
ThomasV
f1d067f446
revert the introduction of add_invoice_coroutine in a612c2b09
6 years ago
ThomasV
aeb58dbd66
do not pass channel list to update_rows signal, as it is sent to all windows
6 years ago
SomberNight
6f246b90bf
wait for peer.initialized in channel_establishment_flow
6 years ago
ThomasV
2ae4b1862d
simplify funding_locked
...
expose lnworker in peer
update channel_db when channels are open
6 years ago
ThomasV
21c883bd0b
Display channel status in the GUI.
...
Do not convert channel_id to integer; there is no reason to do that.
6 years ago
ThomasV
bf6d28e1f0
integrate channels_list with existing framework
6 years ago
ThomasV
6263b472d9
follow-up a612c2b0983ab4c6798156aebf1cd550fb3e0447
6 years ago
Janus
85e18be7d0
ln: save channels in dict, warn on invoice exceeding max_htlc amount
6 years ago
ThomasV
34d5f1b2e3
lightning: connect send button
6 years ago
ThomasV
12d3877873
lightning GUI: use existing receive and send tabs with lightning invoices
6 years ago
Janus
7d2a6d83d5
ln: don't make invoice if peer can't possibly pay, append _sat to sat
...
parameters to avoid confusion
6 years ago
ThomasV
b74d4261af
lnworker: generate and save private key
6 years ago
ThomasV
af4f0b6daf
lnworker: separate invoice creation from payment flow
6 years ago
Janus
ae3971259d
ln: restore channels correctly after restart
...
* save funding_locked_received: if a node already sent us
funding_locked, save it to avoid superfluous messages
* use Queues instead of Futures: this ensure that we don't error if we
receive two messages of the same type, and in avoids having to delete
futures in finally blocks. A queue monitor could be added to detect
queue elements that are not popped.
* request initial routing sync: since we don't store the graph yet, it
is better to request the graph from the Peer so that we can route
* channel_state cleanup: now each channel should have a state, which is
initialized to OPENING and only marked OPEN once we have verified that
the funding_tx has been mined
6 years ago
ThomasV
aafbe74a28
fix channel_reestablish
6 years ago
Janus
6a8e5d5954
ln: restore functionality
6 years ago
Janus
4268be9093
ln: save remote node_id in channel
6 years ago