Commit graph

9994 commits

Author SHA1 Message Date
ThomasV
e7e2b39cfa
move lnaddr.py to lib 2018-11-05 20:05:36 +01:00
Janus
bdac56aa19
ln: avoid code duplication 2018-11-05 20:05:36 +01:00
Janus
414da3942c
ln: avoid recursive dependencies, make new lnutil 2018-11-05 20:05:35 +01:00
Janus
c255f534a8
ln: merge OpenChannel and HTLCStateMachine 2018-11-05 20:05:35 +01:00
Janus
361e119816
ln: shortcut some OpenChannel fields to traversing too much 2018-11-05 20:05:34 +01:00
Janus
d894320625
ln: store HTLCStateMachine in lnworker.channels 2018-11-05 20:05:34 +01:00
SomberNight
94c9943054
improve Qt Receive tab for LN payment requests 2018-11-05 20:05:33 +01:00
ThomasV
93796b1e32
Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2018-11-05 20:05:33 +01:00
Janus
3948945b0f
ln: use new non-classmethod add_signature_to_txin 2018-11-05 20:05:32 +01:00
Janus
a3b67494a9
ln: trim dust htlc outputs 2018-11-05 20:05:32 +01:00
ThomasV
047c543e19
do not set channel state in close_channel; the watcher should do it 2018-11-05 20:05:31 +01:00
ThomasV
586dc0a891
lightning: single shared instance of Watcher, ChannelDB and PathFinder 2018-11-05 20:05:31 +01:00
ThomasV
7711bc1074
disable lightning on mainnet 2018-11-05 20:02:55 +01:00
Janus
5cd0cb2a6f
ln: improve lnhtlc, passes test 2018-11-05 20:02:54 +01:00
Janus
8301d932a5
lnhtlc: use current_per_commitment_point, current_commitment_signature 2018-11-05 20:02:54 +01:00
ThomasV
d79e4ba3cf
fix reestablish_channel 2018-11-05 20:02:53 +01:00
ThomasV
9e1b62f6b4
reestablish channels in network callback 2018-11-05 20:02:53 +01:00
ThomasV
1be29dbad6
channel watcher class 2018-11-05 20:02:52 +01:00
Janus
3dbd1e4af6
ln: add was_announced in test_lnhtlc 2018-11-05 20:02:52 +01:00
Janus
27288f3e69
ln: close channels 2018-11-05 20:02:52 +01:00
Janus
90488f0e05
ln: don't corrupt channels storage when multiple funding_locked are received 2018-11-05 20:02:51 +01:00
Janus
a4a5705936
ln: don't break channel when failing htlc 2018-11-05 20:02:51 +01:00
Janus
86546ea6c4
ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels 2018-11-05 20:02:50 +01:00
Janus
695ac2db0c
ln: begin handling htlc failures 2018-11-05 20:02:50 +01:00
SomberNight
d8500f5e76
add minor comment for RouteEdge as clarification 2018-11-05 20:02:49 +01:00
SomberNight
9cbca2a944
LNPathFinder: cltv delta of first edge in a path should be ignored 2018-11-05 20:02:49 +01:00
Janus
cc815c318d
ln: channel announcements 2018-11-05 20:02:48 +01:00
Janus
98818c3c3a
ln: lnpay: revoke until we get a commitment tx without htlcs 2018-11-05 20:02:48 +01:00
Janus
e0f817244a
ln: fix reestablishing channel with no mined funding tx 2018-11-05 20:02:47 +01:00
Janus
549debc2ec
ln: fix repeated payments 2018-11-05 20:02:47 +01:00
Janus
87992bce0c
ln: avoid code duplication 2018-11-05 20:02:46 +01:00
Janus
e51db18bac
ln: save remote's secrets in RevocationStore, not our secrets. call lnhtlc.receive_revocation 2018-11-05 20:02:46 +01:00
Janus
11f02a5d4b
lnbase/lnhtlc: use lnhtlc more instead of manually constructing tx'es 2018-11-05 20:02:45 +01:00
Janus
6516d5358d
lnbase: use sign_next_commitment for initial remote_ctx 2018-11-05 20:02:45 +01:00
Janus
ab0a609ef7
daemon: prevent json-rpc-pelix from suppressing stack traces of TypeErrors 2018-11-05 20:02:44 +01:00
Janus
df05017ee9
lnbase: use lnhtlc when verifying our initial commitment tx 2018-11-05 20:02:44 +01:00
Janus
2e99f30d24
lnbase: use broadcast_transaction instead of broadcast (follow up e57e55aad) 2018-11-05 20:02:43 +01:00
Janus
01280924d2
test_lnbase: use new Peer API (with lnworker) 2018-11-05 20:02:43 +01:00
Janus
d920310c66
ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving 2018-11-05 20:02:43 +01:00
Janus
a7a2d79f2a
ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs 2018-11-05 20:02:42 +01:00
Janus
5508fe5c24
ln: remove lnbase global flag 2018-11-05 20:02:42 +01:00
Janus
beab441783
ln: request_initial_sync, increase our max_htlc_value, fix receiving payment 2018-11-05 20:02:41 +01:00
ThomasV
2f35212446
do not block GUI with open_channel 2018-11-05 20:02:41 +01:00
ThomasV
3dc8c08f6b
lightning: display remote balance in gui 2018-11-05 20:02:40 +01:00
ThomasV
11ef5c4c4a
lnbase: mark_open on startup 2018-11-05 20:02:40 +01:00
ThomasV
da614e90c0
revert the introduction of add_invoice_coroutine in a612c2b09 2018-11-05 20:02:39 +01:00
ThomasV
8f1b4e7b4a
do not pass channel list to update_rows signal, as it is sent to all windows 2018-11-05 20:02:39 +01:00
SomberNight
91048fb4e1
wait for peer.initialized in channel_establishment_flow 2018-11-05 20:02:38 +01:00
ThomasV
a2f166d20d
follow up 0b3a882e7d57c8a42be48c491a46dc814eab6acb 2018-11-05 20:02:38 +01:00
ThomasV
a6ef0c4f0c
simplify funding_locked
expose lnworker in peer
update channel_db when channels are open
2018-11-05 20:02:37 +01:00