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)
6 years ago
Janus
f9f1805cdf
use IntEnum for TxMinedDepth
6 years ago
ThomasV
632f11d5da
watchtower: add watch_channel rpc
6 years ago
Janus
39fa13b938
lnchan: use NamedTuple for logs instead of dict with static keys (adds, locked_in, settles, fails)
6 years ago
Janus
72187a4341
lnchan: make sign_next_commitment revert state
6 years ago
Janus
001bb4ca09
remove incorrect docstrings, attribute docstring sources where applicable
6 years ago
SomberNight
c0ae7b5534
after rebase clean-up
6 years ago
Janus
7e76e82152
test_lnbase: add test that pays to another local electrum
6 years ago
SomberNight
ce2b572fa5
lnbase: more type annotations, and minor fix
6 years ago
SomberNight
449ec013fe
add licence headers to more files
6 years ago
Janus
f5201327d1
add lnd copyright boilerplate to lnchan, test_lnchan
6 years ago
Janus
85789d8a09
lnbase: mark initialized later, add tests, etc
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
6 years ago
Janus
a42c1067ab
lnworker: fix listchannels
6 years ago
Janus
578faeb91a
lnbase: do not assert only one htlc in commitment
6 years ago
Janus
a5a7c1406e
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
6 years ago
ThomasV
eb4e6b2e54
use WaitingDialog to close channels
6 years ago
ThomasV
70dbd8e672
add close_channel method to peer
6 years ago
ThomasV
f985aac8d1
fix typo
6 years ago
ThomasV
a5ab431b4b
parse invoices with lightning: prefix
6 years ago
ThomasV
5ca6fbaea7
lnbase: self.channel_reestablished is not a queue
6 years ago
Janus
15b0720f5e
lightning channel reserves
6 years ago
SomberNight
54edc9488a
lnworker: store invoices based on payment_hash
6 years ago
ThomasV
d9facabc8c
lnbase: call save_channel in revoke and receive_revoke
6 years ago
Janus
0dfc9e512b
fix co-op close
6 years ago
Janus
d6f62d4e7f
follow-up redeeming of local outgoing htlc outputs, fix tests
6 years ago
SomberNight
04ec7e9968
lnutil.make_funding_input: don't return payment pubkeys
order depends on who is initiator anyway
6 years ago
Janus
1f97a9753e
redeem htlc outputs of our local commitment transaction back to wallet
6 years ago
SomberNight
f70e679aba
some more type annotations that needed conditional imports
6 years ago
SomberNight
f3d1f71e94
lnchan: set diagnostic_name
previously was only set for tests
6 years ago
SomberNight
edff357fad
better handling of channel updates for private channels
6 years ago
SomberNight
bd48072e04
lnrouter: can_pay for own channels should use amount_to_forward
6 years ago
SomberNight
2364de930b
lnrouter: run Dijkstra in reverse direction
6 years ago
SomberNight
7edbd5682a
fix confusion re max path length
6 years ago
SomberNight
2fafd01945
protect against getting robbed through routing fees
6 years ago
SomberNight
c577df8489
lnbase: when opening channel, test if we have enough balance first
and make sure we don't try to create the funding txn from local UTXOs
6 years ago
SomberNight
d511ecdc00
start failing htlcs
6 years ago
SomberNight
ded11b4d9e
lnonion: implement error packet construction
6 years ago
SomberNight
dfe61e15c3
invoice 'r' field fallback: change cltv to 1
6 years ago
SomberNight
4b37343c62
unify hardcoded regtest fee
6 years ago
ThomasV
d6b4268fde
Qt gui: show messages about payment outcome
6 years ago
ThomasV
02c39a950f
encapsulate get_invoice in lnworker
6 years ago
ThomasV
095de2dd22
make on_update_add_htlc async
6 years ago
SomberNight
3ac9858d59
follow-up prev
6 years ago
SomberNight
56c0983e69
fix multi-hop payments
6 years ago
Janus
ac68c8f531
lnchan: add available_to_spend()
6 years ago
Janus
d317bdbd9b
lnchan: make function for onion_keys decoding/encoding
6 years ago
ThomasV
c0aee58e4d
follow-up 3460ba738e
6 years ago
SomberNight
e6a0b641d5
lnaddr: encode min_final_cltv into invoice
6 years ago
SomberNight
384fd665b3
log if no invoice has no routing hints
6 years ago
ThomasV
d9eb92979b
revert rbf on funding tx
6 years ago