feat(rpc): tag Zebra-mined blocks with a 🦓 coinbase marker#10836
Open
upbqdn wants to merge 1 commit into
Open
Conversation
56a9206 to
0b7ab4d
Compare
0b7ab4d to
870a197
Compare
870a197 to
a24b908
Compare
a24b908 to
b2b37d5
Compare
eed6ec5 to
b331f72
Compare
b331f72 to
3e190e9
Compare
3e190e9 to
7fb72ea
Compare
Contributor
|
Thank you for adding this back! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Closes #10835.
Solution
🦓marker (ZEBRA_COINBASE_MARKER) to the coinbase input of every block Zebra builds, as a single script push. Whenextra_coinbase_datais set, a": "separator and the operator data follow.mining.extra_coinbase_dataa validating newtype (ExtraCoinbaseData) capped at 86 bytes (the 94-byte coinbase budget minus the 4-byte marker, 2-byte separator, and 2-byte push opcode). Oversized values are unrepresentable, so the config fails to load and Zebra refuses to start.A separate marker push would need a
zcash_transparentchange; the single push carries marker + separator + data.Why
🦓, not "Zebra"?The marker is for machines — explorers and hashrate monitors that detect Zebra blocks by scanning coinbase data. Plain ASCII like "Zebra" is something miners genuinely type (pool names, messages, the word itself), so matching it would mis-tag other blocks. The 4-byte emoji (
f0 9f a6 93) is vanishingly unlikely in human text, so a hit is almost certainly a Zebra block — and it's 1 byte smaller than "Zebra", leaving more room in the tight coinbase budget. A leading emoji also reads as a deliberate tag, not incidental text.AI Disclosure