Fix off-by-one in backfill sig verification (#5120)

* Fix off-by-one in backfill sig verification

* Add self-referential PR link
This commit is contained in:
Michael Sproul
2024-01-30 11:33:01 +11:00
committed by GitHub
parent a4fcf60bcc
commit 6f3af67362
3 changed files with 34 additions and 2 deletions

View File

@@ -545,6 +545,18 @@ pub struct AvailableBlock<E: EthSpec> {
}
impl<E: EthSpec> AvailableBlock<E> {
pub fn __new_for_testing(
block_root: Hash256,
block: Arc<SignedBeaconBlock<E>>,
blobs: Option<BlobSidecarList<E>>,
) -> Self {
Self {
block_root,
block,
blobs,
}
}
pub fn block(&self) -> &SignedBeaconBlock<E> {
&self.block
}