mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: replace Compact with bincode on ETL usage of SealedHeader (#11442)
This commit is contained in:
@ -16,9 +16,7 @@ mod tests {
|
||||
CompactClientVersion, CompactU256, CompactU64, StoredBlockBodyIndices, StoredBlockOmmers,
|
||||
StoredBlockWithdrawals,
|
||||
};
|
||||
use reth_primitives::{
|
||||
Account, Receipt, ReceiptWithBloom, Requests, SealedHeader, Withdrawals,
|
||||
};
|
||||
use reth_primitives::{Account, Receipt, ReceiptWithBloom, Requests, Withdrawals};
|
||||
use reth_prune_types::{PruneCheckpoint, PruneMode, PruneSegment};
|
||||
use reth_stages_types::{
|
||||
AccountHashingCheckpoint, CheckpointBlockRange, EntitiesCheckpoint, ExecutionCheckpoint,
|
||||
@ -43,7 +41,6 @@ mod tests {
|
||||
assert_eq!(PruneSegment::bitflag_encoded_bytes(), 1);
|
||||
assert_eq!(Receipt::bitflag_encoded_bytes(), 2);
|
||||
assert_eq!(ReceiptWithBloom::bitflag_encoded_bytes(), 0);
|
||||
assert_eq!(SealedHeader::bitflag_encoded_bytes(), 0);
|
||||
assert_eq!(StageCheckpoint::bitflag_encoded_bytes(), 1);
|
||||
assert_eq!(StageUnitCheckpoint::bitflag_encoded_bytes(), 1);
|
||||
assert_eq!(StoredBlockBodyIndices::bitflag_encoded_bytes(), 1);
|
||||
@ -70,7 +67,6 @@ mod tests {
|
||||
validate_bitflag_backwards_compat!(PruneSegment, UnusedBits::Zero);
|
||||
validate_bitflag_backwards_compat!(Receipt, UnusedBits::NotZero);
|
||||
validate_bitflag_backwards_compat!(ReceiptWithBloom, UnusedBits::Zero);
|
||||
validate_bitflag_backwards_compat!(SealedHeader, UnusedBits::Zero);
|
||||
validate_bitflag_backwards_compat!(StageCheckpoint, UnusedBits::NotZero);
|
||||
validate_bitflag_backwards_compat!(StageUnitCheckpoint, UnusedBits::Zero);
|
||||
validate_bitflag_backwards_compat!(StoredBlockBodyIndices, UnusedBits::Zero);
|
||||
|
||||
Reference in New Issue
Block a user