Sander van Grieken
73fee69f5c
tests: move /electrum/tests to /tests
2 years ago
ThomasV
dbceed2647
Restructure wallet storage:
...
- Perform json deserializations in wallet_db
- use StoredDict class that keeps tracks of its modifications
6 years ago
SomberNight
04edad9984
config: no longer singleton. it is passed to Wallet.__init__
...
The few other cases that used SimpleConfig.get_instance() now
either get passed a config instance, or they try to get a reference
to something else that has a reference to a config.
(see lnsweep, qt/qrcodewidget, qt/qrtextedit)
6 years ago
SomberNight
ce54b5411e
lnhtlc: htlcs_by_direction now returns dict keyed by htlc_id
6 years ago
SomberNight
a27b03be6d
lnhtlc: local update raw messages must not be deleted before acked
...
In recv_rev() previously all unacked_local_updates were deleted
as it was assumed that all of them have been acked at that point by
the revoke_and_ack itself. However this is not necessarily the case:
see new test case.
renamed log['unacked_local_updates'] to log['unacked_local_updates2']
to avoid breaking existing wallet files
6 years ago
SomberNight
107f271e58
move all ctn book-keeping to lnhtlc (from lnchannel)
6 years ago
SomberNight
7431aac5cd
lnhtlc: (fix) was locking in too many updates during commit/revoke
6 years ago
SomberNight
69bffac86a
lnhtlc: fix adding htlc between sending commitment_signed and receiving revoke_and_ack
6 years ago
SomberNight
fda6fb6521
lnhtlc: handle fails asymmetrically
6 years ago
SomberNight
8632f027da
lnhtlc: small clean-up / docstrings
6 years ago
Janus
f618bb4a67
lnhtlc: handle settles like adds (asymmetrical across ctns)
6 years ago
Janus
e56e849505
lnchan refactor
...
- replace undoing logic with new HTLCManager class
- separate SENT/RECEIVED
- move UpdateAddHtlc to lnutil
6 years ago
Janus
1763d02b05
rename lnhtlc->lnchan, HTLCStateMachine->Channel
6 years ago
Janus
b26dc66567
lnhtlc: only store feerate once, don't store heights since we do not roll back
6 years ago
Janus
e8471e483b
lnhtlc: merge config and state, remove unnecessary properties
6 years ago
Janus
1d4c113a35
lnhtlc: remove lookup_htlc, use heterogeneously typed lists
6 years ago
Janus
699368b0b7
lnhtlc: save settled htlc amounts separately
6 years ago
SomberNight
d44afd9633
fix tests
6 years ago
Janus
50b3bc939c
avoid reading from queues concurrently in pay()
6 years ago
Janus
d5d9270d0c
lnhtlc: save logs and feeupdates
6 years ago
Janus
eca5545004
lnhtlc: don't throw away fee updates or htlcs
...
also add inject_fees debug command
6 years ago
Janus
02eca03486
lnhtlc: cleanup and save settled htlcs
6 years ago
Janus
6f5209ef85
lnhtlc: test that sent amount is received
6 years ago
Janus
261fefb6f3
lnwatcher rebased
6 years ago
Janus
9247da5203
ln: share more code with control path for failed htlc, verify ctx'es
6 years ago
Janus
3c06b3cee1
ln: use START_INDEX instead of 2**48-1
6 years ago
Janus
a841fa3602
ln: save htlc signatures
6 years ago
Janus
9853cc6f31
ln: do not use mSAT accuracy for commitment fees
6 years ago
Janus
66e7b4d250
ln: fundee must commit to fee first
6 years ago
Janus
35adc3231b
lightning: fixup after rebasing on restructured master
6 years ago
Janus
b26e028d9b
ln: test fix: our commit fee is implicit from outputs
6 years ago
Janus
03c2b954d9
lnhtlc: fee update upgrade and passes ReciverCommits and SenderCommits tests, fix NameErrors in lnbase
6 years ago
Janus
fe973a5137
ln: avoid recursive dependencies, make new lnutil
6 years ago
Janus
7a3551b5df
ln: merge OpenChannel and HTLCStateMachine
6 years ago
Janus
77e9abc655
ln: store HTLCStateMachine in lnworker.channels
6 years ago
Janus
b3dad9480c
ln: trim dust htlc outputs
6 years ago
Janus
e7089c1458
ln: improve lnhtlc, passes test
6 years ago
Janus
56d5936661
lnhtlc: use current_per_commitment_point, current_commitment_signature
6 years ago
Janus
4eb370d2e2
ln: add was_announced in test_lnhtlc
6 years ago
Janus
3f73332817
ln: don't break channel when failing htlc
6 years ago
Janus
f169bff89e
ln: fix reestablishing channel with no mined funding tx
6 years ago
Janus
399fe08047
ln: avoid code duplication
6 years ago
Janus
bd0f659f26
ln: remove unneeded forwarding htlc features, check commitment sig using lnhtlc while receiving
6 years ago
Janus
4d25933898
ln: integrate lnhtlc in lnbase, fix multiple lnhtlc bugs
6 years ago
Janus
497706afbf
ln: htlc state machine (not used yet)
6 years ago