Skip to content

Commit ff65ea8

Browse files
committed
Set holder_tx_signed=true in block_confirmed so new channel updates are rejected.
1 parent f2d3302 commit ff65ea8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3491,6 +3491,10 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
34913491
let commitment_package = PackageTemplate::build_package(self.funding_info.0.txid.clone(), self.funding_info.0.index as u32, PackageSolvingData::HolderFundingOutput(funding_outp), self.best_block.height(), self.best_block.height());
34923492
claimable_outpoints.push(commitment_package);
34933493
self.pending_monitor_events.push(MonitorEvent::CommitmentTxConfirmed(self.funding_info.0));
3494+
// Although we aren't signing the transaction directly here, the transaction will be signed
3495+
// in the claim that is queued to OnchainTxHandler. We set holder_tx_signed here to reject
3496+
// new channel updates.
3497+
self.holder_tx_signed = true;
34943498
// We can't broadcast our HTLC transactions while the commitment transaction is
34953499
// unconfirmed. We'll delay doing so until we detect the confirmed commitment in
34963500
// `transactions_confirmed`.

0 commit comments

Comments
 (0)