We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7befec7 commit 5594560Copy full SHA for 5594560
src/event.rs
@@ -935,12 +935,13 @@ where
935
}
936
},
937
LdkEvent::SpendableOutputs { outputs, channel_id } => {
938
- self.output_sweeper
939
- .track_spendable_outputs(outputs, channel_id, true, None)
940
- .unwrap_or_else(|_| {
+ match self.output_sweeper.track_spendable_outputs(outputs, channel_id, true, None) {
+ Ok(_) => return Ok(()),
+ Err(_) => {
941
log_error!(self.logger, "Failed to track spendable outputs");
942
- panic!("Failed to track spendable outputs");
943
- });
+ return Err(ReplayEvent());
+ },
944
+ };
945
946
LdkEvent::OpenChannelRequest {
947
temporary_channel_id,
0 commit comments