-
Notifications
You must be signed in to change notification settings - Fork 219
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
Remove Metadata from Output features [for non coinbase outputs] #4908
Comments
it might be useful to allow this field only for coinbases, and store information here to display the mining pool that mined this block. Showing the mining pool will make it useful to see if a mining pool has more than 30 or 51% |
I think the rule should be: This field should be optional for coinbases (mining pools and other merge mined coins can use it), but it should be empty for non-coinbases. For coinbases, the maximum length should be 64 bytes (2x hashes), so that arbitrary data cannot be included |
…limited size; ref #4908 (#4960) Description --- Added validation to OutputFeatures which, for now, makes sure that only coinbase output features may have metadata set. Motivation and Context --- Remove Metadata from Output features: metadata is a remnant of the previous DAN implementation. It should be removed from output features #4908 How Has This Been Tested? --- unit tests
Although merged, I should make another PR to reflect Stan's comment, PR got merged before I managed to push an update. Will address to this ticket. |
On second thought, satisfying the aforementioned performance nitpick (on the PR), at the moment, would create unnecessary indirection in the code. Perhaps this can be addressed more properly later, via larger optimization. |
Metadata is a remnant of the previous DAN implementation. It should be removed from output features
The text was updated successfully, but these errors were encountered: