File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
lightning-liquidity/src/lsps2 Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -981,7 +981,7 @@ where
981981 /// Will generate a [`LSPS2ServiceEvent::OpenChannel`] event if the intercept scid matches a payment we are expected
982982 /// and the payment amount is correct and the offer has not expired.
983983 ///
984- /// Will do nothing if the intercept scid does not match any of the ones we gave out.
984+ /// Will return an error if the intercept scid does not match any of the ones we gave out.
985985 ///
986986 /// [`Event::HTLCIntercepted`]: lightning::events::Event::HTLCIntercepted
987987 /// [`LSPS2ServiceEvent::OpenChannel`]: crate::lsps2::event::LSPS2ServiceEvent::OpenChannel
@@ -1067,6 +1067,10 @@ where
10671067 } ) ;
10681068 } ,
10691069 }
1070+ } else {
1071+ return Err ( APIError :: APIMisuseError {
1072+ err : format ! ( "Unknown scid provided: {}" , intercept_scid) ,
1073+ } ) ;
10701074 }
10711075
10721076 if let Some ( counterparty_node_id) = should_persist {
You can’t perform that action at this time.
0 commit comments