-
Notifications
You must be signed in to change notification settings - Fork 400
getnewblockhex: Take data push for arbitrary data in block coinbase c… #753
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
getnewblockhex: Take data push for arbitrary data in block coinbase c… #753
Conversation
b9ebab3 to
98a1547
Compare
src/rpc/mining.cpp
Outdated
| }, | ||
| }, | ||
| "proposed_parameters"}, | ||
| {"data", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "Data in hex to be committed to in an additional coinbase output."}, |
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.
nit: commit_data
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.
that's not a nit :) will fix
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.
oh I see, you're nitting the name. I'm merely matching what's in createrawtransaction fwiw, so I'll keep this if that's ok
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 was nitting the name. In createrawtx, the data field is part of an output. Here it's part of a block. I think it's less obvious what "data" means in a "create block" context. But well if you think consistency is more important, it's fine. ack then.
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.
ok, changed
98a1547 to
6d9639b
Compare
|
ACK 6d9639b |
…k coinbase c… 6d9639b getnewblockhex: Take data push for arbitrary data in block coinbase commitment (Gregory Sanders) Pull request description: …ommitment Useful for non-consensus proof of publication of data. Tree-SHA512: 8967238c97b5188db50f99d7a8d8a1b26712a6b4c02812880502b5eb9572f7ca6a509a2020cb9661b2931f7d2b06f0580baa8652516b529b2386e92e73767a73
…in block coinbase c… c79ad5f getnewblockhex: Take data push for arbitrary data in block coinbase commitment (Gregory Sanders) Pull request description: …ommitment backport of #753 Tree-SHA512: b118f33643a5f62978c4d839c7d38917b65fdf7b8ef86fe8091485ea4f80024b5e8dbaecb00b778c8e9898611bc742b4169d5ce69b59dae8faff749d040c5120
…ommitment
Useful for non-consensus proof of publication of data.