-
Notifications
You must be signed in to change notification settings - Fork 137
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
Convert node client to use V2 Node API #329
Conversation
@@ -165,7 +165,7 @@ impl Client { | |||
/// provided JSON object as body on a given URL that returns a future. Handles | |||
/// request building, JSON serialization and deserialization, and response code | |||
/// checking. | |||
pub fn _post_async<IN, OUT>( | |||
pub fn post_async<IN, OUT>( |
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.
Out of curiosity why not using pub async fn
?
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.
This code is originally from the grin repo.
My PR there is updating the code to use pub async fn
, although iirc the wallet only uses the blocking function. Using the blocking functions many times is not really optimal since it spawns a full runtime for each request, but its something we can improve in a separate PR. For this PR i think its fine to leave as is
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.
Indeed, focus is elsewhere on this PR, can likely make improvements later.
* add beginnings of jsonrpc node client, get_chain_tip implementation * version info and outputs from node * return async split up of get_output requests * add and test get kernel functionality * height range to pmmr indices * test fixes * outputs by pmmr index
Work in progress, includes new JSON-RPC client library code.
Will address #305