ThomasV
2ae4b1862d
simplify funding_locked
expose lnworker in peer
update channel_db when channels are open
7 years ago
ThomasV
21c883bd0b
Display channel status in the GUI.
Do not convert channel_id to integer; there is no reason to do that.
7 years ago
ThomasV
bf6d28e1f0
integrate channels_list with existing framework
7 years ago
ThomasV
6263b472d9
follow-up a612c2b0983ab4c6798156aebf1cd550fb3e0447
7 years ago
Janus
85e18be7d0
ln: save channels in dict, warn on invoice exceeding max_htlc amount
7 years ago
ThomasV
34d5f1b2e3
lightning: connect send button
7 years ago
ThomasV
12d3877873
lightning GUI: use existing receive and send tabs with lightning invoices
7 years ago
Janus
7d2a6d83d5
ln: don't make invoice if peer can't possibly pay, append _sat to sat
parameters to avoid confusion
7 years ago
ThomasV
b74d4261af
lnworker: generate and save private key
7 years ago
ThomasV
af4f0b6daf
lnworker: separate invoice creation from payment flow
7 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
7 years ago
ThomasV
aafbe74a28
fix channel_reestablish
7 years ago
Janus
6a8e5d5954
ln: restore functionality
7 years ago
Janus
4268be9093
ln: save remote node_id in channel
7 years ago
SomberNight
8ba63380b4
split lnrouter from lnbase
7 years ago
ThomasV
b71f020fc9
move on_funding_locked to lnworker
7 years ago
ThomasV
0552c61b66
lightning: add payment methods to lnworker
7 years ago
ThomasV
c621ae8f6e
lightning: move lnworker code to its own module
7 years ago
Janus
6ac15962dc
lnbase: mSAT hygiene, multiple multi-hop payments can be received
7 years ago
Janus
18963405ee
lightning: remove hub based approach, port qt gui to lnbase
7 years ago
Janus
4fdf1b9b84
lnbase: use small buffer when reading, support new_channel without payment in online test, send channel_reserve_satoshis
7 years ago
Janus
5d375de30e
lnbase: use correct cltv_expiry calculation (use invoice)
7 years ago
Janus
5da3820a28
lnbase online test: use random node key when making new channel, save node key, multiple actions per invocation
7 years ago
Janus
b81fb44952
lnbase: fix pay(), save htlc_id's, generate onion packet correctly
7 years ago
Janus
34da1349e0
lnbase/online_test: save short_channel_id to wallet and build onion packet with it
7 years ago
Janus
6bf2714e33
lnbase: initial 'payment to remote' attempt
7 years ago
Janus
2e23ecb3ca
lnbase: verify commitment tx'es again
7 years ago
Janus
6173c2d7a7
lnbase: two payments working, temporarily disable sig check
7 years ago
Janus
ee87920573
lnbase: store remote revocation store, don't store all remote revocation points, verify ctn numbers in reestablish
7 years ago
Janus
2a594e9d0e
lnbase: receive repeated payments
7 years ago
Janus
913176b4b1
tests: don't use default lightning_peers in online test
7 years ago
Janus
d9d2989a6a
lnbase: channel reestablishment working
7 years ago
Janus
60b77f6a00
lnbase: save channel details in wallet, enable running online test with reestablishment_mode
7 years ago
Janus
d3f8fe923c
lnbase: move waiting for funding_locked to new function, make function for signing and sig conversion
7 years ago
Janus
fa80fd4bd5
lnbase: fix custom local to_self_delay, use node privkey derived from timestamp in online test
7 years ago
Janus
517e19ebab
test_lnbase_online: pass password=None to channel_establishment_flow
7 years ago
ThomasV
96544b8b58
lnbase: derive keys from wallet keystore
7 years ago
Janus
39dcc24133
lnbase: organize channel data
7 years ago
Janus
9f8d6625ec
lnbase: receiving invoice payment works
7 years ago
Janus
6d87599964
lnbase: commitment_signed, revoke_and_ack now accepted without errors
7 years ago
Janus
e9e0d60432
lnbase: attempt at making htlc_signature to send (currently remote fails due to wrong num_htlcs in commitment_signed)
7 years ago
Janus
e264a21c64
lnbase: derive next keys when making updated local commitment transaction
7 years ago
Janus
3c34628ffb
lnbase: try to receive payment, work on commitment tx with htlcs
7 years ago
Janus
0f552422a6
lnbase: handle commitment transaction update (receive funds, not working yet)
7 years ago
Janus
1ffaed718c
simnet/testnet support in bolt11, set max-htlc-value-in-flight
7 years ago
Janus
f0e19ffdfd
lnbase: avoid race while waiting for funding_locked, wait for un-reversed hash
7 years ago
SomberNight
4aa9d7ea0d
channel_establishment_flow: wait for confirmations of funding txn
7 years ago
ThomasV
60d6080fe5
lightning: separate testing from main code
7 years ago