mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
Fork choice filter changes (#13464)
* implement confirmation rule prerequisite - f.c. filter changes * update tests * update WORKSPACE for spec v1.4.0-beta.6 * run bazel gazelle * Fix consensus_spec sha256 * drift also forkchoice time when drifting the service on tests * update minimal kzg_commitment_inclusion_proof_depth.size * fix mock engine client * remove unnecessary helper & revert test changes * revert change of proof size in minimal preset * fix tests * fix loader test --------- Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
This commit is contained in:
@@ -2046,7 +2046,9 @@ func TestFillMissingBlockPayloadId_PrepareAllPayloads(t *testing.T) {
|
||||
// boost. It alters the genesisTime tracked by the store.
|
||||
func driftGenesisTime(s *Service, slot, delay int64) {
|
||||
offset := slot*int64(params.BeaconConfig().SecondsPerSlot) + delay
|
||||
s.SetGenesisTime(time.Unix(time.Now().Unix()-offset, 0))
|
||||
newTime := time.Unix(time.Now().Unix()-offset, 0)
|
||||
s.SetGenesisTime(newTime)
|
||||
s.cfg.ForkChoiceStore.SetGenesisTime(uint64(newTime.Unix()))
|
||||
}
|
||||
|
||||
func TestMissingIndices(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user