Skip to content

Commit

Permalink
speed up electra attestation tests by 5x (#6563)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Sep 19, 2024
1 parent e3fcd8b commit e94417c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions beacon_chain/rpc/rest_rewards_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
{.push raises: [].}

import
std/[typetraits, sequtils, sets],
std/[typetraits, sets],
stew/base10,
chronicles, metrics,
./rest_utils,
./state_ttl_cache,
../beacon_node,
../consensus_object_pools/[blockchain_dag, spec_cache, validator_change_pool],
../spec/[forks, state_transition]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_attestation_pool.nim
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,8 @@ suite "Attestation pool electra processing" & preset():
cfg = genesisTestRuntimeConfig(ConsensusFork.Electra)
dag = init(
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, {})
taskpool = Taskpool.new()
verifier = BatchVerifier.init(rng, taskpool)
Expand All @@ -766,7 +767,6 @@ suite "Attestation pool electra processing" & preset():
info,
{}).isOk()


test "Can add and retrieve simple electra attestations" & preset():
let
# Create an attestation for slot 1!
Expand Down

0 comments on commit e94417c

Please sign in to comment.