chore: make block field private (#13628)

This commit is contained in:
Matthias Seitz
2025-01-03 16:10:32 +01:00
committed by GitHub
parent 82013f46da
commit dbd4f0c4fe
67 changed files with 317 additions and 291 deletions

View File

@ -232,10 +232,10 @@ pub fn random_block<R: Rng>(rng: &mut R, number: u64, block_params: BlockParams)
..Default::default()
};
SealedBlock {
header: SealedHeader::seal(header),
body: BlockBody { transactions, ommers, withdrawals: withdrawals.map(Withdrawals::new) },
}
SealedBlock::new(
SealedHeader::seal(header),
BlockBody { transactions, ommers, withdrawals: withdrawals.map(Withdrawals::new) },
)
}
/// Generate a range of random blocks.