feat(rpc): tag Zebra-mined blocks with a 🦓 coinbase marker - #10836
Merged
Conversation
upbqdn
force-pushed
the
coinbase-zebra-tag
branch
from
June 26, 2026 13:05
56a9206 to
0b7ab4d
Compare
upbqdn
force-pushed
the
coinbase-zebra-tag
branch
from
June 26, 2026 13:32
0b7ab4d to
870a197
Compare
upbqdn
force-pushed
the
coinbase-zebra-tag
branch
from
June 26, 2026 13:42
870a197 to
a24b908
Compare
upbqdn
force-pushed
the
coinbase-zebra-tag
branch
from
June 26, 2026 13:52
a24b908 to
b2b37d5
Compare
upbqdn
force-pushed
the
coinbase-zebra-tag
branch
from
June 26, 2026 14:22
b331f72 to
3e190e9
Compare
upbqdn
force-pushed
the
coinbase-zebra-tag
branch
from
June 26, 2026 14:22
3e190e9 to
7fb72ea
Compare
Contributor
|
Thank you for adding this back! |
jvff
requested changes
Jun 30, 2026
jvff
reviewed
Jun 30, 2026
jvff
left a comment
Contributor
There was a problem hiding this comment.
Had an idea, but it's more of a style tweak, not a blocker.
jvff
previously approved these changes
Jul 1, 2026
Member
|
/changelog |
|
Proposed changelog entries for this PR. Review and paste into the relevant **`CHANGELOG.md`** (node operators)
### Breaking Changes
- The `coinbasetxn.data` field in `getblocktemplate` now always includes a `🦓` marker (`f09fa693`) after the encoded block height, changing the coinbase transaction for all blocks built by Zebra. ([#10836](https://github.com/ZcashFoundation/zebra/pull/10836))
- `mining.extra_coinbase_data` is now limited to 86 bytes (was 94); Zebra refuses to start if this limit is exceeded. ([#10836](https://github.com/ZcashFoundation/zebra/pull/10836))
### Added
- Zebra prepends a `🦓` marker to the coinbase input of every block it builds. When `extra_coinbase_data` is set, it is appended after the marker and a `": "` separator. ([#10836](https://github.com/ZcashFoundation/zebra/pull/10836))
**`zebra-rpc/CHANGELOG.md`**
### Breaking Changes
- `config::mining::Config::extra_coinbase_data` is now `Option<ExtraCoinbaseData>` (was `Option<String>`), limited to 86 bytes and validated on construction. ([#10836](https://github.com/ZcashFoundation/zebra/pull/10836))
### Added
- `config::mining::ExtraCoinbaseData` and `config::mining::ExtraCoinbaseDataTooLong` types. ([#10836](https://github.com/ZcashFoundation/zebra/pull/10836)) |
gustavovalverde
approved these changes
Jul 1, 2026
Contributor
Merge Queue Status
This pull request spent 10 minutes 34 seconds in the queue, including 4 seconds running CI. Required conditions to merge
|
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