-
Notifications
You must be signed in to change notification settings - Fork 113
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
change(log): Log a cute message for blocks that were mined by Zebra (off by default) #6098
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6098 +/- ##
==========================================
+ Coverage 77.98% 78.02% +0.03%
==========================================
Files 304 304
Lines 39087 39185 +98
==========================================
+ Hits 30482 30574 +92
- Misses 8605 8611 +6 |
…don't use them yet
9327468
to
f85673c
Compare
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.
This looks great! Thank you for adding this, it's nice to see Zebra committing blocks that were mined with Zebra.
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.
Thanks for the review, I'll do the metrics in a follow-up PR.
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.
Looks great, I left a few minor suggestions.
I also noticed this comment https://github.com/zcashfoundation/zebra/blob/f85673c9aa8794efff68f34741afe49abebce5c0/zebra-chain/src/transparent/serialize.rs#L184 says the "The height may produce 0..=5
initial bytes of coinbase data.", which was confusing since the consensus rules say "The length of heightBytes MUST be in the range {1 .. 5}." Should we refactor that comment?
Follow-ups: Consensus rule comment mistake:
Optional:
|
Motivation
It's nice to see when Zebra has mined some blocks:
This is part of #5934, testing v5 transactions, extra coinbase data, and other minor changes allowed by the consensus rules or RPCs.
Specifications
Coinbase transactions can contain up to 100 bytes of data, but the consensus rules only specify the first 1-6 bytes.
Solution
like_zcashd
is false or if specifically configureddebug_like_zcashd
into a config rather than a constantextra_coinbase_data
Related changes:
Review
This is a low-priority review.
Reviewer Checklist