Skip to content

Commit 8c360ba

Browse files
author
Antoine Riard
committed
Refactor KeyStorage as Storage
Move PrivMode as Local, SigsMode as Watchtower Cut funnding_txo from ChannelMonitor, move it inside Local, add also short_channel_id for onchain cross-channel linking Renmae log_funding_option as log_funding_info
1 parent 26a7192 commit 8c360ba

File tree

3 files changed

+238
-94
lines changed

3 files changed

+238
-94
lines changed

src/ln/channel.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2850,9 +2850,11 @@ impl Channel {
28502850
}
28512851
}
28522852
self.funding_tx_confirmations = 1;
2853-
self.short_channel_id = Some(((height as u64) << (5*8)) |
2854-
((*index_in_block as u64) << (2*8)) |
2855-
((txo_idx as u64) << (0*8)));
2853+
let short_channel_id = ((height as u64) << (5*8)) |
2854+
((*index_in_block as u64) << (2*8)) |
2855+
((txo_idx as u64) << (0*8));
2856+
self.channel_monitor.set_short_channel_id(short_channel_id);
2857+
self.short_channel_id = Some(short_channel_id);
28562858
}
28572859
}
28582860
}

0 commit comments

Comments
 (0)