change(chain): raise ZIP 317 block production weight_ratio_cap from 4 to 10 - #11290
change(chain): raise ZIP 317 block production weight_ratio_cap from 4 to 10#11290aphelionz wants to merge 3 commits into
Conversation
conradoplg
left a comment
There was a problem hiding this comment.
IMO this is blocked on getting this change accepted into the ZIP
|
This seems like a trivial change that we can re-open or replace when needed, please open an issue first next time, see:
https://github.com/ZcashFoundation/zebra/blob/main/CONTRIBUTING.md#pull-requests |
|
Bumping the weight ratio cap from 4 to 10 in Zebra was discussed in advance, sorry for closing this. I agree we should ideally update the ZIP first. |
Motivation
Widen the ZIP 317 block production "priority lane": with the cap at 4, any transaction paying more than 4x its conventional fee gets no additional selection weight. Raising the cap to 10 lets fee-based prioritization follow an easy-to-explain powers-of-10 model, as a companion to zcash/zips#1352 (lowering the marginal fee to 1000 zatoshis).
Discussed with the Zebra team on Discord beforehand.
Solution
Raise
BLOCK_PRODUCTION_WEIGHT_RATIO_CAP(weight_ratio_capin ZIP 317) from 4 to 10.Tests
Existing
zebra-chainzip317 tests pass; no test depends on the cap value. The cap only boundsconventional_fee_weight_ratio, which is used for weighted-random block template construction and mempool metrics.Specifications & References
AI Disclosure
PR Checklist
type(scope): description