Skip to content

Commit 795493c

Browse files
committed
f dont pretend to send a message when we wont
1 parent 05f74a2 commit 795493c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4291,12 +4291,12 @@ impl<Signer: Sign> Channel<Signer> {
42914291
}
42924292
}
42934293
}
4294-
let announcement_sigs = self.get_announcement_sigs(node_pk, genesis_block_hash, height).ok();
42954294
// If we allow 1-conf funding, we may need to check for funding_locked here and
42964295
// send it immediately instead of waiting for a best_block_updated call (which
42974296
// may have already happened for this block).
42984297
if let Some(funding_locked) = self.check_get_funding_locked(height) {
42994298
log_info!(logger, "Sending a funding_locked to our peer for channel {}", log_bytes!(self.channel_id));
4299+
let announcement_sigs = self.get_announcement_sigs(node_pk, genesis_block_hash, height).ok();
43004300
return Ok((Some(funding_locked), announcement_sigs));
43014301
}
43024302
}

0 commit comments

Comments
 (0)