Skip to content

Commit 589389d

Browse files
author
Antoine Riard
committed
Add Fast-Close in case of fees spikes
1 parent 8cce3cc commit 589389d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4339,6 +4339,8 @@ impl<Signer: Sign> Channel<Signer> {
43394339

43404340
self.update_time_counter = cmp::max(self.update_time_counter, highest_header_time);
43414341

4342+
self.autoclose_timestamp = highest_header_time as u64;
4343+
43424344
if let Some(funding_locked) = self.check_get_funding_locked(height) {
43434345
log_info!(logger, "Sending a funding_locked to our peer for channel {}", log_bytes!(self.channel_id));
43444346
return Ok((Some(funding_locked), timed_out_htlcs));

0 commit comments

Comments
 (0)