mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 06:16:25 +00:00
f90b2b8b1f
Similar to the existing `RewardInfo`, this PR adds the infrastructure needed to export epoch processing information from altair+. Because accounting is done somewhat differently, the PR uses a fork-specific object to extrct the information in order to make the cost on the spec side low. * RewardInfo -> EpochInfo, ForkedEpochInfo * use array for computing new sync committee * avoid repeated total active balance computations in block processing * simplify proposer index check * simplify epoch transition tests * pre-compute base increment and reuse in epoch processing, and a few other small optimizations This PR introduces the type and does the heavy lifting in terms of refactoring - the tools that use the accounting will need separate PR:s (as well as refinements to the exportred information)
29 lines
1.0 KiB
Nim
29 lines
1.0 KiB
Nim
# beacon_chain
|
|
# Copyright (c) 2021 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
{.used.}
|
|
|
|
import
|
|
chronicles
|
|
|
|
import
|
|
./test_fixture_fork,
|
|
./test_fixture_merkle_single_proof,
|
|
./test_fixture_operations_attestations,
|
|
./test_fixture_operations_attester_slashings,
|
|
./test_fixture_operations_block_header,
|
|
./test_fixture_operations_deposits,
|
|
./test_fixture_operations_proposer_slashings,
|
|
./test_fixture_operations_sync_aggregate,
|
|
./test_fixture_operations_voluntary_exit,
|
|
./test_fixture_sanity_blocks,
|
|
./test_fixture_sanity_slots,
|
|
./test_fixture_ssz_consensus_objects,
|
|
./test_fixture_state_transition_epoch,
|
|
./test_fixture_sync_protocol,
|
|
./test_fixture_transition
|