lightningdevkit / lightning-liquidity

Other
27 stars 17 forks source link

LSPS0: List Protocols #16

Closed yanganto closed 1 year ago

yanganto commented 1 year ago

We need to expose the lsps0.listprotocols method and let it become queriable from others.

In #15, the return of LSPS0Response of handle_request is rejected. And there is no return after handling the lsps0 request.

If I am not misunderstanding, the LSPS0Response should pop up as an Event, and anyone sending the query can acquire the event after the query, and by comparing the RequestId to get the corresponding event for the request.

This PR handles the lsps0 request and creates an event when handling the request, such that we can do an lsps0 query and get the result.

If there is anything I can do to make this RP be merged easier, please let me know.
Thanks. :pray:

tnull commented 1 year ago

Closing this as not planned for now and will reach out on Discord to better understand your requirements.