Commit graph

9952 commits

Author SHA1 Message Date
Janus
be068de6a0
lnbase: do not revoke more than once if we have missed reading commitments 2018-11-05 20:05:40 +01:00
SomberNight
014d25ff28
lnwatcher: sweep to_remote and to_local outputs if they close 2018-11-05 20:05:40 +01:00
Janus
1ee125df8a
ln: revoke before sending bare ctx in pay(), remove subtraction of trimmed amt from fee 2018-11-05 20:05:39 +01:00
Janus
43d72c236a
ln: add two trimming tests, avoid negative numbers in htlc trim decision 2018-11-05 20:05:39 +01:00
Janus
98574bf5ee
lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase 2018-11-05 20:05:38 +01:00
Janus
d4433cfcd4
lnaddr: remove remnants of lightning_payencode directory 2018-11-05 20:05:38 +01:00
Janus
413a94a13d
lnaddr: fix imports 2018-11-05 20:05:37 +01:00
ThomasV
fd18ae6773
move comment 2018-11-05 20:05:37 +01:00
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