You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit error events and return errors in client error handlers
Update handle_get_info_error and handle_buy_error to:
- Emit GetInfoFailed and BuyRequestFailed events to notify users
- Return LightningError instead of Ok() to properly signal failures
- Use the actual error parameter instead of ignoring it
This ensures consistent error handling behavior across LSPS implementations.
returnErr(LightningError{err:format!("Received error response for a get_info request from an unknown counterparty ({:?})",counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
returnErr(LightningError{err:format!("Received error response for a buy request from an unknown counterparty ({:?})", counterparty_node_id),action:ErrorAction::IgnoreAndLog(Level::Info)});
0 commit comments