-
Notifications
You must be signed in to change notification settings - Fork 81
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
litclient: add taprpc to registrations #571
litclient: add taprpc to registrations #571
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this needs a rebase, but I tested this with lightninglabs/lightning-node-connect#77 and it worked. 👌
This will need a PR in the So this line will need to be edited so that it doesnt add the |
cc @dstadulis who can help us prio any necessary change on the |
2d7daa4
to
031175f
Compare
Opened a PR for the required fix in the taproot-assets repo, and updated this PR to use a forked version containing the fix. Also updated this PR to register the |
a0c75c6
to
6a8f426
Compare
Updated this PR to use the latest version of the main branch for the taproot-asset dependency to include the required fix. Also update the litclient Also rebased on the latest version of |
we might not want to include all the other changes in the This is something that we might want to do quite often in LiT & I think we dont always want to have to wait for a release on the sub-server side just cause we want to include some changes on the code-structure level that wont actually have behaviour changes for the user. So I think we should decide on a pattern for including such changes. My suggestion would be: we should create a Keen to hear what @guggero things of this idea 🙏 |
Good point, @ellemouton. There weren't any braking changes merged in |
shweet! thanks @guggero 🙏 🚀 @ViktorTigerstrom - can you update this PR to point to the new tag? after that, this is g2g! |
Update the taproot-assets dependency to a version of the main branch that includes a commit which contains a fix that removes the js build tag requirement when using the taprpc packages' JSON callback functions. Also replace the google.golang.org/protobuf dependency to forked version which is required for the taproot-assets dependency to work properly.
Add the `taprpc`, `assetwalletrpc`, `mintrpc` and the `universerpc` JSON callbacks to the litclient's `Registrations` array. This allows the litclient to use the rpc functions contained in the JSON callbacks.
6a8f426
to
f981d96
Compare
Thanks for the great feedback @ellemouton! Makes a lot sense. And thanks for creating the tag so quickly @guggero!! Updated the dependency to use the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, LGTM 🎉
// We want to format raw bytes as hex instead of base64. The forked version | ||
// allows us to specify that as an option. This is required for the | ||
// taproot-assets dependency to function properly. | ||
replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 🚀
This PR adds the taprpc to the litclient's
Registrations
array, to ensure that the TaprootAssets callbacks are registered and available in the litclient.