Implement status v2 version (#7590)

N/A


  Implements status v2 as defined in https://github.com/ethereum/consensus-specs/pull/4374/
This commit is contained in:
Pawan Dhananjay
2025-06-12 00:17:06 -07:00
committed by GitHub
parent 5f208bb858
commit 9803d69d80
13 changed files with 208 additions and 78 deletions

View File

@@ -746,6 +746,7 @@ impl<E: EthSpec> PeerDB<E> {
head_root: Hash256::ZERO,
finalized_epoch: Epoch::new(0),
finalized_root: Hash256::ZERO,
earliest_available_slot: Some(Slot::new(0)),
},
},
);

View File

@@ -25,6 +25,7 @@ pub struct SyncInfo {
pub head_root: Hash256,
pub finalized_epoch: Epoch,
pub finalized_root: Hash256,
pub earliest_available_slot: Option<Slot>,
}
impl std::cmp::PartialEq for SyncStatus {