Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Dec 5, 2022
1 parent 074b639 commit cd9d516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-chain/src/transaction/unmined/zip317.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn conventional_fee_weight_ratio(
// the minimum transparent output size, but future transaction versions could change this.
assert!(
MIN_BLOCK_PRODUCTION_SUBSTITUTE_FEE as f32 / MAX_BLOCK_BYTES as f32 > 0.0,
"invalid block production constants: the minumum fee ratio must not be zero"
"invalid block production constants: the minimum fee ratio must not be zero"
);

let miner_fee = max(miner_fee.into(), MIN_BLOCK_PRODUCTION_SUBSTITUTE_FEE) as f32;
Expand Down
1 change: 1 addition & 0 deletions zebra-rpc/src/methods/get_block_template_rpcs/zip317.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ fn checked_add_transaction_weighted_random(

// Unpaid actions are always zero for transactions that pay the conventional fee,
// so this limit always remains the same after they are added.
// It only changes for low fee transactions.
*remaining_block_unpaid_actions -= candidate_tx.unpaid_actions;
}

Expand Down

0 comments on commit cd9d516

Please sign in to comment.