-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Add RPC call to generate and verify merkle blocks #5199
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
Conversation
|
Oh, also a simple flag to getblock so you can get only the header. That one is not related to sidechains, but I needed it while debugging. |
src/bitcoin-tx.cpp
Outdated
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.
coins should be before core ;)
|
Fixed all the nits that we're related to header-include (I believe we removed that from our coding standards?) |
|
We did; #5201. Still, feel free to follow them :) |
|
@TheBlueMatt You as a core dev, I really would love to see you still following that rules :). |
|
Fixed include ordering for includes related to this pull (others are related to #5181) |
acdd46d to
128728c
Compare
|
Rebased on top of the now-merged #5181, also now support multiple transactions in one proof. |
128728c to
720ddf1
Compare
|
Concept ACK, but this new functionality needs a test in |
|
@laanwj done. |
a4b9ab0 to
5a883b6
Compare
6ff6284 to
45e4675
Compare
src/rpcblockchain.cpp
Outdated
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.
headeronly (boolean) would need to be mentioned in the arguments here.
BTW: what about adding a getblockheader call, instead of adding a boolean argument? I'd slightly prefer that for readability/simplicity. It would only result in minimal code duplication.
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.
ping @TheBlueMatt
fc01dfb to
fa5febe
Compare
|
Rebased, fixed an indentation error, removed the blockheader-only option (meh, people can just substring(0, 160) anyway...) |
30f0a6e to
649adf2
Compare
|
Rebased. Review? |
649adf2 to
6686f5c
Compare
6686f5c to
724a630
Compare
724a630 to
7cf76c0
Compare
ce2d5dd to
1ec900a
Compare
|
Tested ACK. |
|
utACK |
(based on #5181 as it would otherwise conflict and I'm lazy.)
Adds RPC calls to generate (and verify) merkle blocks which, though verify is less useful for Bitcoin Core, just making them more accessible so that (hopefully) they become useful for people to exchange around would be very nice.
Full Disclosure: This is required to sidechain-related work.