Janus
|
e56e849505
|
lnchan refactor
- replace undoing logic with new HTLCManager class
- separate SENT/RECEIVED
- move UpdateAddHtlc to lnutil
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
06d4224101
|
lnchan: remove debugging code, commented out code
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
2323118bda
|
lnchan: only sign force_close_tx when demanded, assure consistency, fix test
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
1d8fe52fa3
|
lnchan: make force_close_tx() assure that tx is valid, trigger failure in test
|
2019-08-20 09:03:11 +02:00 |
|
ThomasV
|
7e34554d1e
|
fix test_lnchan
|
2019-08-20 09:03:11 +02:00 |
|
SomberNight
|
595cfcbb65
|
move sweeping methods from lnchan.py to new file
also sweep "received" htlcs from "our" ctx
also sweep htlcs from their ctx (non-breach)
extract ctn; included_htlcs_in_their_latest_ctxs
|
2019-08-20 09:03:11 +02:00 |
|
ThomasV
|
78896897cb
|
lnchan: replace properties with functions
|
2019-08-20 09:03:11 +02:00 |
|
ThomasV
|
3430d1aaa3
|
follow-up prev commit
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
1520338f37
|
fix ln tests
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
783cac1f23
|
function that returns map from commitment number to list of HTLCs
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
0ea87278fb
|
move force_close_channel to lnbase, test it, add FORCE_CLOSING state
|
2019-08-20 09:03:11 +02:00 |
|
Janus
|
39fa13b938
|
lnchan: use NamedTuple for logs instead of dict with static keys (adds, locked_in, settles, fails)
|
2019-08-20 09:03:10 +02:00 |
|
Janus
|
72187a4341
|
lnchan: make sign_next_commitment revert state
|
2019-08-20 09:03:10 +02:00 |
|
SomberNight
|
c0ae7b5534
|
after rebase clean-up
|
2019-08-20 09:03:10 +02:00 |
|
Janus
|
f5201327d1
|
add lnd copyright boilerplate to lnchan, test_lnchan
|
2019-08-20 09:03:10 +02:00 |
|
Janus
|
a5a7c1406e
|
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
|
2019-08-20 09:03:10 +02:00 |
|
Janus
|
15b0720f5e
|
lightning channel reserves
|
2019-08-20 09:03:10 +02:00 |
|
Janus
|
ac68c8f531
|
lnchan: add available_to_spend()
|
2019-08-20 09:03:10 +02:00 |
|
ThomasV
|
409a336071
|
fix tests (follow-up previous commit)
|
2019-08-20 09:03:10 +02:00 |
|
Janus
|
1763d02b05
|
rename lnhtlc->lnchan, HTLCStateMachine->Channel
|
2019-08-20 09:03:10 +02:00 |
|