-
Notifications
You must be signed in to change notification settings - Fork 84
fix: implement getblock and getblockheader compliant with core
#657
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
base: master
Are you sure you want to change the base?
Conversation
jaoleal
left a comment
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.
I know that this is draft and the CI is broken but heres some early thougths
c469ea6 to
d80d2a8
Compare
6c516c7 to
14f7841
Compare
4a203b9 to
2a0ef75
Compare
|
Needs rebase |
a8fda04 to
4bcae5d
Compare
cf053b0 to
1a77099
Compare
94eb268 to
6f6d1e2
Compare
getblock and getblockheader compliant with core
3953d6e to
757a88c
Compare
|
Need rebase |
|
Staled PR, @qlrd do you plan to continue this ? With the most recent changes i think that things are much simpler, take a look at our headers extensions in floresta-chain so we can get |
This commit add a `verbose` paramenter to `getblockheader` command so it will comply with core wheather to return a "raw" blockheader (as a hexadecimal string) or a "verbose" blockheader (as a json object). Fix getfloresta#655
This commit add a test that should result in a proper `serde_json::Value<GetBlockHeaderResVerbose>`.
…ock` rpc This commit add a cycle of connections and mining to the `getblockheader`/`getblock` tesst so it can check the blocks/ blockheaders for 102 different heights.
757a88c to
8ef936f
Compare
This commit remove unused imports as well add a ignore pattern to .gitignore.
What is the purpose of this pull request?
Which crates are being modified?
Description and Notes
Fix #655
How to verify the changes you have done?
Add a
verboseparamenter togetblockheadercommand so it will comply with core wheather to return a "raw" blockheader (as a hexadecimal string) or a "verbose" blockheader (as a json object).Due to this, it was also needed to fix
getblockrpc method so it can, now, use verbosity levels0up to2.