Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changes/unreleased/zebrad-Changed-20260818-205730.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
project: zebrad
kind: Changed
body: 'Block template construction now caps the ZIP-317 fee weight ratio at 10 instead of 4, widening the priority lane for transactions that pay more than their conventional fee ([#11290](https://github.com/ZcashFoundation/zebra/pull/11290)).'
time: 2026-08-18T20:57:30.000000000Z
7 changes: 5 additions & 2 deletions zebra-chain/src/transaction/unmined/zip317.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ const P2PKH_STANDARD_INPUT_SIZE: usize = 150;
/// The standard size of p2pkh outputs for the ZIP-317 fee calculation, in bytes.
const P2PKH_STANDARD_OUTPUT_SIZE: usize = 34;

/// The recommended weight ratio cap for ZIP-317 block production.
/// The weight ratio cap for ZIP-317 block production.
/// `weight_ratio_cap` in ZIP-317.
const BLOCK_PRODUCTION_WEIGHT_RATIO_CAP: f32 = 4.0;
///
/// This is higher than the ZIP-317 recommended value of 4, widening the priority
/// lane for transactions that pay more than their conventional fee.
const BLOCK_PRODUCTION_WEIGHT_RATIO_CAP: f32 = 10.0;

/// The minimum fee for the block production weight ratio calculation, in zatoshis.
/// If a transaction has a lower fee, this value is used instead.
Expand Down