adjust fork schedule in light client data tests
This commit is contained in:
parent
e7349be3e5
commit
347c88972d
|
@ -22,7 +22,7 @@ from ./testbcutil import addHeadBlock
|
||||||
|
|
||||||
suite "Light client" & preset():
|
suite "Light client" & preset():
|
||||||
const # Test config, should be long enough to cover interesting transitions
|
const # Test config, should be long enough to cover interesting transitions
|
||||||
headPeriod = 3.SyncCommitteePeriod
|
headPeriod = 4.SyncCommitteePeriod
|
||||||
let
|
let
|
||||||
cfg = block: # Fork schedule so that each `LightClientDataFork` is covered
|
cfg = block: # Fork schedule so that each `LightClientDataFork` is covered
|
||||||
static: doAssert ConsensusFork.high == ConsensusFork.Electra
|
static: doAssert ConsensusFork.high == ConsensusFork.Electra
|
||||||
|
@ -31,7 +31,7 @@ suite "Light client" & preset():
|
||||||
res.BELLATRIX_FORK_EPOCH = 2.Epoch
|
res.BELLATRIX_FORK_EPOCH = 2.Epoch
|
||||||
res.CAPELLA_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 1).Epoch
|
res.CAPELLA_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 1).Epoch
|
||||||
res.DENEB_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 2).Epoch
|
res.DENEB_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 2).Epoch
|
||||||
res.ELECTRA_FORK_EPOCH = FAR_FUTURE_EPOCH
|
res.ELECTRA_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 3).Epoch
|
||||||
res
|
res
|
||||||
altairStartSlot = cfg.ALTAIR_FORK_EPOCH.start_slot
|
altairStartSlot = cfg.ALTAIR_FORK_EPOCH.start_slot
|
||||||
|
|
||||||
|
@ -246,4 +246,4 @@ suite "Light client" & preset():
|
||||||
let headSlot = (finalizedSlot.epoch + i).start_slot
|
let headSlot = (finalizedSlot.epoch + i).start_slot
|
||||||
cpDag.advanceToSlot(headSlot, verifier, quarantine[])
|
cpDag.advanceToSlot(headSlot, verifier, quarantine[])
|
||||||
|
|
||||||
check true
|
check true
|
||||||
|
|
|
@ -24,8 +24,8 @@ from ./testbcutil import addHeadBlock
|
||||||
suite "Light client processor" & preset():
|
suite "Light client processor" & preset():
|
||||||
const # Test config, should be long enough to cover interesting transitions
|
const # Test config, should be long enough to cover interesting transitions
|
||||||
lowPeriod = 0.SyncCommitteePeriod
|
lowPeriod = 0.SyncCommitteePeriod
|
||||||
lastPeriodWithSupermajority = 3.SyncCommitteePeriod
|
lastPeriodWithSupermajority = 4.SyncCommitteePeriod
|
||||||
highPeriod = 5.SyncCommitteePeriod
|
highPeriod = 6.SyncCommitteePeriod
|
||||||
let
|
let
|
||||||
cfg = block: # Fork schedule so that each `LightClientDataFork` is covered
|
cfg = block: # Fork schedule so that each `LightClientDataFork` is covered
|
||||||
static: doAssert ConsensusFork.high == ConsensusFork.Electra
|
static: doAssert ConsensusFork.high == ConsensusFork.Electra
|
||||||
|
@ -34,7 +34,7 @@ suite "Light client processor" & preset():
|
||||||
res.BELLATRIX_FORK_EPOCH = 2.Epoch
|
res.BELLATRIX_FORK_EPOCH = 2.Epoch
|
||||||
res.CAPELLA_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 1).Epoch
|
res.CAPELLA_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 1).Epoch
|
||||||
res.DENEB_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 2).Epoch
|
res.DENEB_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 2).Epoch
|
||||||
res.ELECTRA_FORK_EPOCH = FAR_FUTURE_EPOCH
|
res.ELECTRA_FORK_EPOCH = (EPOCHS_PER_SYNC_COMMITTEE_PERIOD * 3).Epoch
|
||||||
res
|
res
|
||||||
|
|
||||||
const numValidators = SLOTS_PER_EPOCH
|
const numValidators = SLOTS_PER_EPOCH
|
||||||
|
|
Loading…
Reference in New Issue