mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 10:52:43 +00:00
VC: don't warn if BN config doesn't match exactly (#2952)
## Proposed Changes Remove the check for exact equality on the beacon node spec when polling `/config/spec` from the VC. This check was always overzealous, and mostly served to check that the BN was configured for upcoming forks. I've replaced it by explicit checks of the `altair_fork_epoch` and `bellatrix_fork_epoch` instead. ## Additional Info We should come back to this and clean it up so that we can retain compatibility while removing the field `default`s we installed.
This commit is contained in:
@@ -253,22 +253,19 @@ impl<E: EthSpec> CandidateBeaconNode<E> {
|
||||
"our_genesis_fork" => ?spec.genesis_fork_version,
|
||||
);
|
||||
return Err(CandidateError::Incompatible);
|
||||
} else if *spec != beacon_node_spec {
|
||||
} else if beacon_node_spec.altair_fork_epoch != spec.altair_fork_epoch {
|
||||
warn!(
|
||||
log,
|
||||
"Beacon node config does not match exactly";
|
||||
"Beacon node has mismatched Altair fork epoch";
|
||||
"endpoint" => %self.beacon_node,
|
||||
"advice" => "check that the BN is updated and configured for any upcoming forks",
|
||||
"endpoint_altair_fork_epoch" => ?beacon_node_spec.altair_fork_epoch,
|
||||
);
|
||||
debug!(
|
||||
} else if beacon_node_spec.bellatrix_fork_epoch != spec.bellatrix_fork_epoch {
|
||||
warn!(
|
||||
log,
|
||||
"Beacon node config";
|
||||
"config" => ?beacon_node_spec,
|
||||
);
|
||||
debug!(
|
||||
log,
|
||||
"Our config";
|
||||
"config" => ?spec,
|
||||
"Beacon node has mismatched Bellatrix fork epoch";
|
||||
"endpoint" => %self.beacon_node,
|
||||
"endpoint_bellatrix_fork_epoch" => ?beacon_node_spec.bellatrix_fork_epoch,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user