speed up electra attestation tests by 5x (#6563)
This commit is contained in:
parent
e3fcd8b031
commit
e94417c500
|
@ -8,11 +8,10 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[typetraits, sequtils, sets],
|
std/[typetraits, sets],
|
||||||
stew/base10,
|
stew/base10,
|
||||||
chronicles, metrics,
|
chronicles, metrics,
|
||||||
./rest_utils,
|
./rest_utils,
|
||||||
./state_ttl_cache,
|
|
||||||
../beacon_node,
|
../beacon_node,
|
||||||
../consensus_object_pools/[blockchain_dag, spec_cache, validator_change_pool],
|
../consensus_object_pools/[blockchain_dag, spec_cache, validator_change_pool],
|
||||||
../spec/[forks, state_transition]
|
../spec/[forks, state_transition]
|
||||||
|
|
|
@ -747,7 +747,8 @@ suite "Attestation pool electra processing" & preset():
|
||||||
cfg = genesisTestRuntimeConfig(ConsensusFork.Electra)
|
cfg = genesisTestRuntimeConfig(ConsensusFork.Electra)
|
||||||
dag = init(
|
dag = init(
|
||||||
ChainDAGRef, cfg,
|
ChainDAGRef, cfg,
|
||||||
makeTestDB(TOTAL_COMMITTEES * TARGET_COMMITTEE_SIZE*SLOTS_PER_EPOCH * 6, cfg = cfg),
|
makeTestDB(
|
||||||
|
TOTAL_COMMITTEES * TARGET_COMMITTEE_SIZE * SLOTS_PER_EPOCH, cfg = cfg),
|
||||||
validatorMonitor, {})
|
validatorMonitor, {})
|
||||||
taskpool = Taskpool.new()
|
taskpool = Taskpool.new()
|
||||||
verifier = BatchVerifier.init(rng, taskpool)
|
verifier = BatchVerifier.init(rng, taskpool)
|
||||||
|
@ -766,7 +767,6 @@ suite "Attestation pool electra processing" & preset():
|
||||||
info,
|
info,
|
||||||
{}).isOk()
|
{}).isOk()
|
||||||
|
|
||||||
|
|
||||||
test "Can add and retrieve simple electra attestations" & preset():
|
test "Can add and retrieve simple electra attestations" & preset():
|
||||||
let
|
let
|
||||||
# Create an attestation for slot 1!
|
# Create an attestation for slot 1!
|
||||||
|
|
Loading…
Reference in New Issue