New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomOnionMessageHandler::handle_message
doesn't expose the reply_path
#2882
Comments
Hmm... possibly though it would be nice to have some optionality here. We could pass the handler an object that has methods like:
|
That seems sensible, and then the method would return a |
Not 100% sure. I was thinking those first two methods would essentially act as callbacks to |
Yea, I don't really have much of an opinion on how this should look, any of those seem reasonable to me. |
Quick heads up, I'm actively tackling this issue now. Will update as soon as I make some good progress! |
I'm trying to implement an onion message handler that does some work async and then eventually replies to an onion message. However,
handle_message
currently only exposes the message itself but not the reply path, which would be needed to be able to respond async. To avoidclone
ing theBlindedPath
in such a case, maybe it makes sense to drop the whole reply-inline logic and force users to reply viarelease_pending_custom_messages
?The text was updated successfully, but these errors were encountered: