mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make block field private (#13628)
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user