Fix disable backfill flag not working correctly (#4615)
## Issue Addressed The feature flag used to control this feature is `disable_backfill` instead of `disable-backfill`. kudos to @michaelsproul for discovering this bug!
This commit is contained in:
parent
249f85f1d9
commit
59c24bcd2d
@ -395,7 +395,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
|||||||
|
|
||||||
// If we would otherwise be synced, first check if we need to perform or
|
// If we would otherwise be synced, first check if we need to perform or
|
||||||
// complete a backfill sync.
|
// complete a backfill sync.
|
||||||
#[cfg(not(feature = "disable_backfill"))]
|
#[cfg(not(feature = "disable-backfill"))]
|
||||||
if matches!(sync_state, SyncState::Synced) {
|
if matches!(sync_state, SyncState::Synced) {
|
||||||
// Determine if we need to start/resume/restart a backfill sync.
|
// Determine if we need to start/resume/restart a backfill sync.
|
||||||
match self.backfill_sync.start(&mut self.network) {
|
match self.backfill_sync.start(&mut self.network) {
|
||||||
@ -420,7 +420,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
|||||||
}
|
}
|
||||||
Some((RangeSyncType::Finalized, start_slot, target_slot)) => {
|
Some((RangeSyncType::Finalized, start_slot, target_slot)) => {
|
||||||
// If there is a backfill sync in progress pause it.
|
// If there is a backfill sync in progress pause it.
|
||||||
#[cfg(not(feature = "disable_backfill"))]
|
#[cfg(not(feature = "disable-backfill"))]
|
||||||
self.backfill_sync.pause();
|
self.backfill_sync.pause();
|
||||||
|
|
||||||
SyncState::SyncingFinalized {
|
SyncState::SyncingFinalized {
|
||||||
@ -430,7 +430,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
|||||||
}
|
}
|
||||||
Some((RangeSyncType::Head, start_slot, target_slot)) => {
|
Some((RangeSyncType::Head, start_slot, target_slot)) => {
|
||||||
// If there is a backfill sync in progress pause it.
|
// If there is a backfill sync in progress pause it.
|
||||||
#[cfg(not(feature = "disable_backfill"))]
|
#[cfg(not(feature = "disable-backfill"))]
|
||||||
self.backfill_sync.pause();
|
self.backfill_sync.pause();
|
||||||
|
|
||||||
SyncState::SyncingHead {
|
SyncState::SyncingHead {
|
||||||
|
Loading…
Reference in New Issue
Block a user