ThomasV
e2182f5846
lnwatcher fixes
7 years ago
ThomasV
3abe30e9d8
basic watchtower synchronization
7 years ago
ThomasV
38f1436d78
post rebase fixes
7 years ago
ThomasV
02d013421a
lnwatcher: store transactions as binary
7 years ago
ThomasV
d8e9a9a49e
create parent class for sql databases
7 years ago
ThomasV
b861e2e955
lnwatcher: save sweepstore in sqlite database
7 years ago
ThomasV
43d9e0460e
follow-up previous commit
7 years ago
ThomasV
8aa4ce0704
improve watchtower gui
7 years ago
ThomasV
f04e10f61a
save channel timestamps, and show lightning payments in history tab
7 years ago
ThomasV
19e60f00bb
add watchtower_window
7 years ago
Janus
38396e8ed4
lnwatcher: fix incorrect tuple unpacking in do_breach_remedy
7 years ago
ThomasV
b0f39718bb
remove useless returns and cryptic names
7 years ago
Janus
2c1fcb2f54
ln: remove EncumberedTransaction
7 years ago
ThomasV
729ddb8ec3
LNWatcher refactoring:
...
- do not store non-breach transactions
- send 'channel_open' and 'channel_closed' events
- force-closed channels are handled by LNWorker
7 years ago
ThomasV
0e3270a1d6
further simplify lnwatcher
7 years ago
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
7 years ago
ThomasV
88c6eeb966
make LNWatcher inherit AddressSynchronizer
7 years ago
Janus
6211e656a8
lnwatcher: do not get_transaction before broadcast
...
this workaround was inserted to avoid losing the interface
when rebroadcasting a transaction already in the mempool
many times. but since the network should make sure we always
have a interface ready, and this problem shouldn't happen on
mainnet, remove the workaround
7 years ago
Janus
c8dcf0b471
lnwatcher: more detailed logging, support notifying test suite of txs
7 years ago
Janus
795ba1f99d
lnwatcher: ensure probable spendability of prev_tx
...
previously, we would try to publish the second_stage
even if we couldn't, because a conflicting transaction
was published (like an htlc success when we close with
htlcs pending with a 1-hop payment and an online
counterparty)
7 years ago
Janus
f9f1805cdf
use IntEnum for TxMinedDepth
7 years ago
ThomasV
632f11d5da
watchtower: add watch_channel rpc
7 years ago
SomberNight
c0ae7b5534
after rebase clean-up
7 years ago
SomberNight
449ec013fe
add licence headers to more files
7 years ago
Janus
d6f62d4e7f
follow-up redeeming of local outgoing htlc outputs, fix tests
7 years ago
Janus
1f97a9753e
redeem htlc outputs of our local commitment transaction back to wallet
7 years ago
SomberNight
f70e679aba
some more type annotations that needed conditional imports
7 years ago
ThomasV
87fb0da5e1
minor fix
7 years ago
ThomasV
9362130fba
fix race between network and lnwatcher (network.add_job does not always work)
7 years ago
ThomasV
e761f5b876
add watchtower class, send encumbered tx as json
7 years ago
SomberNight
48252318b8
rebase follow-up
7 years ago
ThomasV
30753ed475
watchtower: use network job, catch exceptions
7 years ago
ThomasV
680b129b4a
remote watchtower: initial commit
7 years ago
Janus
94a10e6307
rebase fixup: use new broadcast_transaction API
7 years ago
SomberNight
029ec5a5ab
make our channels private, and put routing hints in invoices we create
7 years ago
ThomasV
4441233596
get rid of callbacks in lnwatcher, use network events instead
7 years ago
ThomasV
6e5b36e661
lnwatcher simplification: remove ctn tests and pubkeys
7 years ago
ThomasV
11c3ca281c
create sweep transaction outside of lnwatcher
7 years ago
SomberNight
72eb179c7a
fix race between lnwatcher/lnworker
...
channels were sometimes not getting re-established
7 years ago
Janus
5859054095
fix lnwatcher for channels initiated by remote
7 years ago
Janus
0405f0d9ad
accept channel opening requests initiated by remote
7 years ago
ThomasV
22b06ddec2
lnwatcher: fix parameters to broadcast_transaction
7 years ago
SomberNight
c91fe27e7d
fix lnwatcher: network triggers were renamed
7 years ago
ThomasV
5c5982d9f7
lnwatcher: do not assume addr_sync.synchronizer
7 years ago
Janus
261fefb6f3
lnwatcher rebased
7 years ago
Janus
3eabd70df5
lightning: post aiorpcx rebase fixup
7 years ago
SomberNight
1b030fca78
rebase follow-up: use namedtuples from master in new code (TxOutput, TxMinedStatus)
7 years ago
ThomasV
bb4aa1e135
lnwatcher: pass address instead of wallet reference
7 years ago
ThomasV
bc28edf178
encapsulate funding_address_for_channel
7 years ago
ThomasV
9897e41e68
remove unused method
7 years ago