saturating sub epoch for blob boundary

This commit is contained in:
realbigsean 2022-12-07 15:40:51 -05:00
parent 5a42f6b067
commit 658e9d9bba
No known key found for this signature in database
GPG Key ID: B372B64D866BF8CC

View File

@ -5428,7 +5428,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
self.epoch().ok().map(|current_epoch| { self.epoch().ok().map(|current_epoch| {
std::cmp::max( std::cmp::max(
fork_epoch, fork_epoch,
current_epoch - *MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS, current_epoch.saturating_sub(*MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS),
) )
}) })
}) })