feat(primitives): add _HASH suffix for constants hashes (#5175)

This commit is contained in:
Thomas Coratger
2023-10-25 16:07:21 +02:00
committed by GitHub
parent 98e03ee4e2
commit dd6913cd98
13 changed files with 42 additions and 40 deletions

View File

@ -1,7 +1,7 @@
//! Helper function for calculating Merkle proofs and hashes.
use crate::{
constants::EMPTY_OMMER_ROOT,
constants::EMPTY_OMMER_ROOT_HASH,
keccak256,
trie::{HashBuilder, Nibbles},
Address, GenesisAccount, Header, ReceiptWithBloom, ReceiptWithBloomRef, TransactionSigned,
@ -89,7 +89,7 @@ where
pub fn calculate_ommers_root(ommers: &[Header]) -> B256 {
// Check if `ommers` list is empty
if ommers.is_empty() {
return EMPTY_OMMER_ROOT
return EMPTY_OMMER_ROOT_HASH
}
// RLP Encode
let mut ommers_rlp = Vec::new();