-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add a getblocktemplate-rpcs
feature to zebra-rpc
#5305
Comments
It seems we have a few options here, not sure if they are written somewhere else. It seems we don't need this feature in We do need it in The Rpc trait implements all the methods so we can:
Adding it once and have all the code in a mod seems to be a bit better however i am not sure if we can easily add new methods to the base trait. |
We've added acceptance tests to each RPC ticket, so we'll probably want that feature at the same time.
We could add a
https://doc.rust-lang.org/rust-by-example/trait/supertraits.html Then if the feature is active, we automatically get the new trait impl, and if it's not, we don't. |
Hey team! Please add your planning poker estimate with Zenhub @arya2 @conradoplg @dconnolly @oxarbitrage @teor2345 @upbqdn |
we need to implement at least one rpc call before we can "hide it" behind a feature |
The PR #5357 attempt to implement the I think we should go that way (implementing the feature first) to avoid the refactor (moving code among files) that we will have to do if we use the supertrait design to implemnent this. If we add the feature function by function then we add the feature code with each call but initially we want to try the other way as it is somehow cleaner. |
getblocktemplate-rpcs
feature to zebrad
and zebra-rpc
getblocktemplate-rpcs
feature to zebra-rpc
No description provided.
The text was updated successfully, but these errors were encountered: