Janus
62e7318f46
ln: raise our dust/reserve to 546 to be compatible with c-lightning
7 years ago
Janus
950bc74039
lnbase: do not revoke more than once if we have missed reading commitments
7 years ago
Janus
f7f6abef40
ln: revoke before sending bare ctx in pay(), remove subtraction of trimmed amt from fee
7 years ago
Janus
124705084a
ln: add two trimming tests, avoid negative numbers in htlc trim decision
7 years ago
Janus
c896fba459
lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase
7 years ago
ThomasV
9ec879e23b
move lnaddr.py to lib
7 years ago
Janus
4b80982a48
ln: avoid recursive dependencies, make new lnutil
7 years ago
Janus
26695a4ece
ln: merge OpenChannel and HTLCStateMachine
7 years ago
Janus
bb7399e95b
ln: shortcut some OpenChannel fields to traversing too much
7 years ago
Janus
b3f78b6022
ln: store HTLCStateMachine in lnworker.channels
7 years ago
ThomasV
9725aaa7ab
Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements
7 years ago
Janus
48d7aba4d5
ln: trim dust htlc outputs
7 years ago
ThomasV
01c8fbc7a2
lightning: single shared instance of Watcher, ChannelDB and PathFinder
7 years ago
Janus
1761dae31b
ln: improve lnhtlc, passes test
7 years ago
ThomasV
beea4882e9
fix reestablish_channel
7 years ago
ThomasV
f8a5c3059f
reestablish channels in network callback
7 years ago
Janus
3b52509026
ln: close channels
7 years ago
Janus
b45de79173
ln: don't corrupt channels storage when multiple funding_locked are received
7 years ago
Janus
6034fac2a6
ln: don't break channel when failing htlc
7 years ago
Janus
93820e77bd
ln: announcement reliability fixes for qt, remove asserts forbidding unbalanced channels
7 years ago
Janus
4b44d9c1a6
ln: begin handling htlc failures
7 years ago
Janus
000dd30e99
ln: channel announcements
7 years ago
Janus
632ea24fbb
ln: lnpay: revoke until we get a commitment tx without htlcs
7 years ago
Janus
1235cd04d6
ln: fix reestablishing channel with no mined funding tx
7 years ago
Janus
067cae122b
ln: fix repeated payments
7 years ago
Janus
5f8db0d459
ln: avoid code duplication
7 years ago
Janus
63007afa53
ln: save remote's secrets in RevocationStore, not our secrets. call lnhtlc.receive_revocation
7 years ago
Janus
661ac0fe7d
lnbase/lnhtlc: use lnhtlc more instead of manually constructing tx'es
7 years ago
Janus
c07fa2c1a0
lnbase: use sign_next_commitment for initial remote_ctx
7 years ago
Janus
582f43933e
lnbase: use lnhtlc when verifying our initial commitment tx
7 years ago
Janus
c785c14d6e
lnbase: use broadcast_transaction instead of broadcast (follow up e57e55aad
)
7 years ago
Janus
c5dba44ec2
ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving
7 years ago
Janus
187456b5b1
ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs
7 years ago
Janus
f76a2f69e7
ln: request_initial_sync, increase our max_htlc_value, fix receiving payment
7 years ago
ThomasV
12d231eb90
do not block GUI with open_channel
7 years ago
ThomasV
3adc627d21
lnbase: mark_open on startup
7 years ago
SomberNight
0a77bac351
wait for peer.initialized in channel_establishment_flow
7 years ago
ThomasV
4169ea3d49
follow up 0b3a882e7d57c8a42be48c491a46dc814eab6acb
7 years ago
ThomasV
a912890a56
simplify funding_locked
expose lnworker in peer
update channel_db when channels are open
7 years ago
ThomasV
d7770ff38a
Display channel status in the GUI.
Do not convert channel_id to integer; there is no reason to do that.
7 years ago
Janus
4253e7fac0
ln: htlc state machine (not used yet)
7 years ago
Janus
26fb975d78
ln: save channels in dict, warn on invoice exceeding max_htlc amount
7 years ago
ThomasV
90d5dd2df4
lnworker: separate invoice creation from payment flow
7 years ago
Janus
44ccc39fc4
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
eb4d151324
fix channel_reestablish
7 years ago
ThomasV
951047b3d8
lnbase: fix read_message
7 years ago
Janus
c9ac5d1376
ln: restore functionality
7 years ago
Janus
9466080c25
ln: save remote node_id in channel
7 years ago
SomberNight
5379c36e70
split lnrouter from lnbase
7 years ago
SomberNight
03f9da4f22
remove function H256
7 years ago