ebff5b545d
lnpeer: replace assert active_forwarding with if. force both incoming and outgoing MPP in test_mpp_consolidation
ThomasV
2025-01-06 11:09:45 +01:00
33d0e6dbec
Attach labels to outpoints instead of txids. Move labels logic from lnworker to wallet.
ThomasV
2024-12-12 12:25:07 +01:00
4d9c33c33f
Qt: disable swapserver dialog if we are using http
ThomasV
2025-01-03 10:39:24 +01:00
29a8c41025
move watchtower to a plugin. remove watchtower dialog in qt
ThomasV
2024-12-20 14:02:54 +01:00
67470b92b7
lnchannel: fix extract_preimage for MPP. - enforce MPP in the corresponding regtest. - fix get_invoice_status returning inflight if it was settled onchain
ThomasV
2024-12-14 08:24:26 +01:00
62af1ee887
fixes for txin.make_witness: - add witness_sizehint - fix make_unsigned_transaction - do not remove witness_script in tx.finalize()
ThomasV
2024-12-13 14:25:08 +01:00
3b1dc194e4
Refactor lnsweep: - txins have an optional make_witness method - instead of gen_tx, SweepInfo has a txin and an optional txout, for 1st stage HTLCs - sweep transactions are created by lnwatcher
ThomasV
2024-12-11 11:51:03 +01:00
0e3b730cd9
lnsweep: remove dead code (we never sweep to_remote in non-anchor channels)
ThomasV
2024-12-11 10:54:16 +01:00
1da937f103
swaps: set nsequence in create_claim_tx (follow-up previous commit)
ThomasV
2024-12-11 10:24:40 +01:00
0599254e1f
lnsweep and submarine_swaps: set txin.nsequence, instead of calling set_rbf. set_rbf must be avoided if we batch transactions, because it blindly overwrites nsequence of all txins.
ThomasV
2024-12-09 14:51:55 +01:00
6598507d3c
lnwatcher: replace inspect_tx_candidate with get_spender.
ThomasV
2024-12-10 13:28:10 +01:00
8bec974a39
wallet: add inputs and base_tx parameters to make_unsigned_transaction
ThomasV
2024-12-08 09:53:56 +01:00
7b72655fba
tx serialization: breakup tx witness into elements
ThomasV
2024-12-08 09:29:59 +01:00
62331aeb56
coin_chooser: make BIP69_sort optional
ThomasV
2024-12-03 18:25:45 +01:00
8bf505fc4b
coin_chooser: allow to pass empty outputs to make_tx. coins will be sent to a change address if there are no outputs.
ThomasV
2024-12-01 09:34:34 +01:00
9aa7222c5c
swaps: let plugin override self.is_server (config variable may be ser and plugin not active)
ThomasV
2024-12-01 09:16:16 +01:00
cdc746713e
lnwatcher: if broadcast is successful, add tx immediately, so that second-stage htlc can be added as well
ThomasV
2024-11-25 11:39:12 +01:00
ea584e13fc
anchors: switch to zero-fee-htlcs
bitromortac
2021-10-15 11:08:10 +02:00
d4222432f4
enable anchor_channels for regtest
bitromortac
2021-09-15 09:47:58 +02:00
6735ae5ec8
fix unit test (follow-up 78d19c6e2f)
ThomasV
2024-11-23 11:58:29 +01:00
78d19c6e2f
amchor outputs: fixes after rebase
ThomasV
2024-11-23 11:25:32 +01:00
3951e07c53
prepare a channel to have anchors
bitromortac
2021-09-13 11:00:12 +02:00
19726c4427
try fo fix mpp unittests flakiness by waiting an extra iteration
ThomasV
2024-11-19 13:34:26 +01:00
81aed0f6c9
simplify maybe_fulfill_htlc - move some checks in two helper methods: - invariant checks are performed in check_accepted_htlc - mpp checks are performed in check_mpp_is waiting - in order to avoid passing local_height to check_accepted_htlc, the height in the error message is added by create_onion_error.
ThomasV
2024-11-19 11:00:50 +01:00
7a8569abc7
maybe_fulfill_htlc: - do not fail because chain tip is stale if we already forwarded - if we already forwarded a htlc and its cltv gets too close, do not return, as this means we would never fulfill it
ThomasV
2024-11-19 12:25:46 +01:00
69503bbeb4
submarine swaps: disable tx batching, because we need to handle the case where base_tx gets mined instead of the replacing tx.
ThomasV
2024-11-07 11:22:52 +01:00