Qt: add closing warning if we have an unconfirmed local commitment tx with htlcs
add htlc direction (offered, received) to the htlc sweep_info name regtest: add test_reedeem_received_htlcs
This commit is contained in:
@@ -385,7 +385,7 @@ def sweep_our_ctx(
|
||||
htlc_relative_idx=htlc_relative_idx)
|
||||
|
||||
if actual_htlc_tx is None:
|
||||
name = 'first-stage-htlc-anchors' if chan.has_anchors() else 'first-stage-htlc'
|
||||
name = 'offered-htlc' if htlc_direction == SENT else 'received-htlc'
|
||||
prevout = ctx.txid() + f':{ctx_output_idx}'
|
||||
csv_delay = 1 if chan.has_anchors() else 0
|
||||
txs[prevout] = SweepInfo(
|
||||
|
||||
Reference in New Issue
Block a user