Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Dec 4, 2024
1 parent ff5258d commit e0fd189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/types/src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl<E: EthSpec> TreeHash for Transactions<E> {
let max_tx_count = <E as EthSpec>::max_transactions_per_payload();
let max_tx_len = <E as EthSpec>::max_bytes_per_transaction();
let bytes_per_leaf = 32;
let tx_leaf_count = (max_tx_len + bytes_per_leaf - 1) / bytes_per_leaf;
let tx_leaf_count = max_tx_len.div_ceil(bytes_per_leaf);

let mut hasher = MerkleHasher::with_leaves(max_tx_count);

Expand Down

0 comments on commit e0fd189

Please sign in to comment.