Repository Analysis

ethereum/consensus-specs

Ethereum Consensus Specifications

20.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ethereum/consensus-specs, a Python project with 3,958 GitHub stars. SynthScan v2.0 examined 186,025 lines of code across 735 source files, recording 3147 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 20.6 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

20.6
Adjusted Score
20.6
Raw Score
100%
Time Factor
2026-08-28
Last Push
4.0K
Stars
Python
Language
186.0K
Lines of Code
735
Files
3.1K
Pattern Hits
2026-08-29
Scan Date
0.09
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 65MEDIUM 191LOW 2890

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3147 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2682 hits · 2631 pts
SeverityFileLineSnippetContext
LOWspecs/electra/weak-subjectivity.md32def compute_weak_subjectivity_period(state: BeaconState) -> Uint64:CODE
LOWspecs/electra/weak-subjectivity.md61def is_within_weak_subjectivity_period(CODE
LOWspecs/electra/p2p-interface.md91def compute_max_request_blob_sidecars() -> Uint64:CODE
LOWspecs/electra/p2p-interface.md128def validate_beacon_block_gossip(CODE
LOWspecs/electra/p2p-interface.md232def validate_beacon_aggregate_and_proof_gossip(CODE
LOWspecs/electra/p2p-interface.md375def validate_beacon_attestation_gossip(CODE
LOWspecs/electra/p2p-interface.md479def validate_blob_sidecar_gossip(CODE
LOWspecs/electra/beacon-chain.md634def is_compounding_withdrawal_credential(withdrawal_credentials: Bytes32) -> bool:CODE
LOWspecs/electra/beacon-chain.md641def has_compounding_withdrawal_credential(validator: Validator) -> bool:CODE
LOWspecs/electra/beacon-chain.md651def has_execution_withdrawal_credential(validator: Validator) -> bool:CODE
LOWspecs/electra/beacon-chain.md761def get_activation_exit_churn_limit(state: BeaconState) -> Gwei:CODE
LOWspecs/electra/beacon-chain.md771def get_consolidation_churn_limit(state: BeaconState) -> Gwei:CODE
LOWspecs/electra/beacon-chain.md778def get_pending_balance_to_withdraw(state: BeaconState, validator_index: ValidatorIndex) -> Gwei:CODE
LOWspecs/electra/beacon-chain.md620def is_eligible_for_activation_queue(validator: Validator) -> bool:CODE
LOWspecs/electra/beacon-chain.md668def is_fully_withdrawable_validator(validator: Validator, balance: Gwei, epoch: Epoch) -> bool:CODE
LOWspecs/electra/beacon-chain.md688def is_partially_withdrawable_validator(validator: Validator, balance: Gwei) -> bool:CODE
LOWspecs/electra/beacon-chain.md708def is_eligible_for_partial_withdrawals(validator: Validator, balance: Gwei) -> bool:CODE
LOWspecs/electra/beacon-chain.md733def get_max_effective_balance(validator: Validator) -> Gwei:CODE
LOWspecs/electra/beacon-chain.md819def get_next_sync_committee_indices(state: BeaconState) -> Sequence[ValidatorIndex]:CODE
LOWspecs/electra/beacon-chain.md877def switch_to_compounding_validator(state: BeaconState, index: ValidatorIndex) -> None:CODE
LOWspecs/electra/beacon-chain.md888def queue_excess_active_balance(state: BeaconState, index: ValidatorIndex) -> None:CODE
LOWspecs/electra/beacon-chain.md910def compute_exit_epoch_and_update_churn(state: BeaconState, exit_balance: Gwei) -> Epoch:CODE
LOWspecs/electra/beacon-chain.md938def compute_consolidation_epoch_and_update_churn(CODE
LOWspecs/electra/beacon-chain.md1202def process_pending_consolidations(state: BeaconState) -> None:CODE
LOWspecs/electra/beacon-chain.md1234def process_effective_balance_updates(state: BeaconState) -> None:CODE
LOWspecs/electra/beacon-chain.md1313def verify_and_notify_new_payload(CODE
LOWspecs/electra/beacon-chain.md1366def get_pending_partial_withdrawals(CODE
LOWspecs/electra/beacon-chain.md1413def get_validators_sweep_withdrawals(CODE
LOWspecs/electra/beacon-chain.md1496def update_pending_partial_withdrawals(CODE
LOWspecs/electra/beacon-chain.md1532def get_execution_requests_list(execution_requests: ExecutionRequests) -> Sequence[bytes]:CODE
LOWspecs/electra/beacon-chain.md1553def process_execution_payload(CODE
LOWspecs/electra/beacon-chain.md1717def get_validator_from_deposit(CODE
LOWspecs/electra/beacon-chain.md1746def add_validator_to_registry(CODE
LOWspecs/electra/beacon-chain.md1796def is_valid_deposit_signature(CODE
LOWspecs/electra/beacon-chain.md1877def process_withdrawal_request(state: BeaconState, withdrawal_request: WithdrawalRequest) -> None:CODE
LOWspecs/electra/beacon-chain.md1972def is_valid_switch_to_compounding_request(CODE
LOWspecs/electra/beacon-chain.md2010def process_consolidation_request(CODE
LOWspecs/electra/validator.md121def compute_on_chain_aggregate(network_aggregates: Sequence[Attestation]) -> Attestation:CODE
LOWspecs/electra/validator.md269def compute_subnet_for_blob_sidecar(blob_index: BlobIndex) -> SubnetID:CODE
LOWspecs/electra/light-client/sync-protocol.md97def finalized_root_gindex_at_slot(slot: Slot) -> GeneralizedIndex:CODE
LOWspecs/electra/light-client/sync-protocol.md109def current_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:CODE
LOWspecs/electra/light-client/sync-protocol.md121def next_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:CODE
LOWspecs/electra/light-client/fork.md41def upgrade_lc_header_to_electra(pre: deneb.LightClientHeader) -> LightClientHeader:CODE
LOWspecs/electra/light-client/fork.md50def upgrade_lc_bootstrap_to_electra(pre: deneb.LightClientBootstrap) -> LightClientBootstrap:CODE
LOWspecs/electra/light-client/fork.md63def upgrade_lc_update_to_electra(pre: deneb.LightClientUpdate) -> LightClientUpdate:CODE
LOWspecs/electra/light-client/fork.md82def upgrade_lc_finality_update_to_electra(CODE
LOWspecs/electra/light-client/fork.md97def upgrade_lc_optimistic_update_to_electra(CODE
LOWspecs/electra/light-client/fork.md114def upgrade_lc_store_to_electra(pre: deneb.LightClientStore) -> LightClientStore:CODE
LOWspecs/deneb/p2p-interface.md226def is_current_or_previous_epoch(CODE
LOWspecs/deneb/p2p-interface.md243def compute_max_request_blob_sidecars() -> Uint64:CODE
LOWspecs/deneb/p2p-interface.md253def verify_blob_sidecar_inclusion_proof(blob_sidecar: BlobSidecar) -> bool:CODE
LOWspecs/deneb/p2p-interface.md305def validate_beacon_block_gossip(CODE
LOWspecs/deneb/p2p-interface.md408def validate_beacon_aggregate_and_proof_gossip(CODE
LOWspecs/deneb/p2p-interface.md529def validate_voluntary_exit_gossip(CODE
LOWspecs/deneb/p2p-interface.md596def validate_beacon_attestation_gossip(CODE
LOWspecs/deneb/p2p-interface.md698def validate_blob_sidecar_gossip(CODE
LOWspecs/deneb/beacon-chain.md287def kzg_commitment_to_versioned_hash(kzg_commitment: KZGCommitment) -> VersionedHash:CODE
LOWspecs/deneb/beacon-chain.md302def get_attestation_participation_flag_indices(CODE
LOWspecs/deneb/beacon-chain.md342def get_validator_activation_churn_limit(state: BeaconState) -> Uint64:CODE
LOWspecs/deneb/beacon-chain.md384def is_valid_versioned_hashes(CODE
2622 more matches not shown…
Decorative Section Separators97 hits · 354 pts
SeverityFileLineSnippetContext
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_on_block.py718 # ------------COMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_on_block.py735 # ------------COMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_on_block.py765 # ------------COMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_on_block.py802 # ------------COMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_on_block.py822 # ------------COMMENT
MEDIUMconfigs/minimal.yaml13# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml21# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml32# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml65# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml110# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml141# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml152# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml160# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml226# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/minimal.yaml233# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml16# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml24# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml35# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml69# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml114# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml145# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml156# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml163# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml229# ---------------------------------------------------------------COMMENT
MEDIUMconfigs/mainnet.yaml240# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/eip8148.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/altair.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/altair.yaml13# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/altair.yaml20# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/deneb.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/deneb.yaml9# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/deneb.yaml14# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/bellatrix.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/bellatrix.yaml13# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/heze.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/heze.yaml9# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/eip8205.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/eip8321.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/fulu.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/fulu.yaml9# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml11# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml18# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml27# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml34# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml43# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/electra.yaml48# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/gloas.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/gloas.yaml9# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/gloas.yaml14# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/gloas.yaml21# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/gloas.yaml26# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/phase0.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/phase0.yaml21# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/phase0.yaml30# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/phase0.yaml47# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/phase0.yaml58# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/phase0.yaml73# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/capella.yaml4# ---------------------------------------------------------------COMMENT
MEDIUMpresets/minimal/capella.yaml9# ---------------------------------------------------------------COMMENT
37 more matches not shown…
Cross-File Repetition64 hits · 320 pts
SeverityFileLineSnippetContext
HIGHspecs/electra/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/deneb/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/capella/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/fulu/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/gloas/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/phase0/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/bellatrix/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/_features/eip8321/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/altair/p2p-interface.md0validate a proposerslashing for gossip propagation. raises gossipignore or gossipreject on validation failure.STRING
HIGHspecs/electra/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/gloas/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/deneb/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/altair/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/fulu/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/fulu/partial-columns/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/gloas/partial-columns/p2p-interface.md0validate a partialdatacolumnsidecar for gossip propagation on a subnet. raises gossipignore or gossipreject on validatioSTRING
HIGHspecs/electra/beacon-chain.md0the indices of the validators participating in an attestation.STRING
HIGHspecs/gloas/beacon-chain.md0the indices of the validators participating in an attestation.STRING
HIGHspecs/phase0/beacon-chain.md0the indices of the validators participating in an attestation.STRING
HIGHspecs/electra/beacon-chain.md0return the sync committee indices, with possible duplicates, for the next sync committee.STRING
HIGHspecs/altair/beacon-chain.md0return the sync committee indices, with possible duplicates, for the next sync committee.STRING
HIGHspecs/gloas/beacon-chain.md0return the sync committee indices, with possible duplicates, for the next sync committee.STRING
HIGHspecs/electra/beacon-chain.md0return ``true`` if and only if ``execution_payload.block_hash`` is computed correctly.STRING
HIGHspecs/deneb/beacon-chain.md0return ``true`` if and only if ``execution_payload.block_hash`` is computed correctly.STRING
HIGHspecs/bellatrix/beacon-chain.md0return ``true`` if and only if ``execution_payload.block_hash`` is computed correctly.STRING
HIGHspecs/electra/beacon-chain.md0return ``true`` if and only if ``new_payload_request`` is valid with respect to ``self.execution_state``.STRING
HIGHspecs/deneb/beacon-chain.md0return ``true`` if and only if ``new_payload_request`` is valid with respect to ``self.execution_state``.STRING
HIGHspecs/bellatrix/beacon-chain.md0return ``true`` if and only if ``new_payload_request`` is valid with respect to ``self.execution_state``.STRING
HIGHspecs/electra/light-client/sync-protocol.md0a merkle branch proving ``current_sync_committee`` within ``beaconstate``.STRING
HIGHspecs/altair/light-client/sync-protocol.md0a merkle branch proving ``current_sync_committee`` within ``beaconstate``.STRING
HIGHspecs/gloas/light-client/sync-protocol.md0a merkle branch proving ``current_sync_committee`` within ``beaconstate``.STRING
HIGHspecs/electra/light-client/sync-protocol.md0a merkle branch proving ``finalized_checkpoint.root`` within ``beaconstate``.STRING
HIGHspecs/altair/light-client/sync-protocol.md0a merkle branch proving ``finalized_checkpoint.root`` within ``beaconstate``.STRING
HIGHspecs/gloas/light-client/sync-protocol.md0a merkle branch proving ``finalized_checkpoint.root`` within ``beaconstate``.STRING
HIGHspecs/electra/light-client/sync-protocol.md0a merkle branch proving ``next_sync_committee`` within ``beaconstate``.STRING
HIGHspecs/altair/light-client/sync-protocol.md0a merkle branch proving ``next_sync_committee`` within ``beaconstate``.STRING
HIGHspecs/gloas/light-client/sync-protocol.md0a merkle branch proving ``next_sync_committee`` within ``beaconstate``.STRING
HIGHspecs/deneb/beacon-chain.md0return the flag indices that are satisfied by an attestation.STRING
HIGHspecs/altair/beacon-chain.md0return the flag indices that are satisfied by an attestation.STRING
HIGHspecs/gloas/beacon-chain.md0return the flag indices that are satisfied by an attestation.STRING
HIGHspecs/_features/eip8025/fork-choice.md0run ``on_execution_payload_envelope`` upon receiving a new execution payload envelope.STRING
HIGHspecs/gloas/fork-choice.md0run ``on_execution_payload_envelope`` upon receiving a new execution payload envelope.STRING
HIGHspecs/heze/fork-choice.md0run ``on_execution_payload_envelope`` upon receiving a new execution payload envelope.STRING
HIGH…t/electra/unittests/test_execution_engine_interface.py0test noopexecutionengine.notify_new_payload returns true and doesn't modify stateSTRING
HIGH…est/deneb/unittests/test_execution_engine_interface.py0test noopexecutionengine.notify_new_payload returns true and doesn't modify stateSTRING
HIGH…bellatrix/unittests/test_execution_engine_interface.py0test noopexecutionengine.notify_new_payload returns true and doesn't modify stateSTRING
HIGH…t/electra/unittests/test_execution_engine_interface.py0test noopexecutionengine.is_valid_block_hash returns true and doesn't modify stateSTRING
HIGH…est/deneb/unittests/test_execution_engine_interface.py0test noopexecutionengine.is_valid_block_hash returns true and doesn't modify stateSTRING
HIGH…bellatrix/unittests/test_execution_engine_interface.py0test noopexecutionengine.is_valid_block_hash returns true and doesn't modify stateSTRING
HIGH…/test/electra/sanity/blocks/test_deposit_transition.py0run ``process_randao``, yielding: - pre-state ('pre') - block ('block') - post-state ('post'). if ``valid == false``, ruSTRING
HIGH…t/phase0/block_processing/test_process_block_header.py0run ``process_randao``, yielding: - pre-state ('pre') - block ('block') - post-state ('post'). if ``valid == false``, ruSTRING
HIGH…s/test/eip8321/block_processing/test_process_randao.py0run ``process_randao``, yielding: - pre-state ('pre') - block ('block') - post-state ('post'). if ``valid == false``, ruSTRING
HIGH…eth_consensus_specs/test/electra/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…c/eth_consensus_specs/test/deneb/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…/eth_consensus_specs/test/altair/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…eth_consensus_specs/test/capella/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…ec/eth_consensus_specs/test/fulu/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…c/eth_consensus_specs/test/gloas/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…/eth_consensus_specs/test/phase0/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
HIGH…h_consensus_specs/test/bellatrix/random/test_random.py0this module is generated from the ``random`` test generator. please do not edit this file manually. see the readme for tSTRING
4 more matches not shown…
Self-Referential Comments84 hits · 246 pts
SeverityFileLineSnippetContext
MEDIUM…sensus_specs/test/electra/sanity/blocks/test_blocks.py311 # Create a 1 gwei withdrawal request for the same validatorCOMMENT
MEDIUM…sensus_specs/test/electra/sanity/blocks/test_blocks.py355 # Create a switch to compounding validator request for the same validatorCOMMENT
MEDIUM…t/electra/block_processing/test_process_attestation.py164 # Create an on chain aggregateCOMMENT
MEDIUM…nsus_specs/test/altair/fork/test_altair_fork_random.py83 # Create a random stateCOMMENT
MEDIUM…_consensus_specs/test/altair/light_client/test_sync.py551 # Create a best_valid_update by emitting an update without a finalized_headerCOMMENT
MEDIUM…g/test_gossip_sync_committee_contribution_and_proof.py92 # Create the aggregate signatureCOMMENT
MEDIUM…pyspec/eth_consensus_specs/test/utils/template_test.py34 # Create a wrapper that registers the test when calledCOMMENT
MEDIUM…pec/eth_consensus_specs/test/utils/block_randomized.py128 # Define the sets of transitions to combineCOMMENT
MEDIUM…cs/test/gloas/fork/test_gloas_fork_onboard_builders.py138 # Create a pending deposit with builder credentialsCOMMENT
MEDIUM…cs/test/gloas/fork/test_gloas_fork_onboard_builders.py165 # Create a pending deposit with builder credentialsCOMMENT
MEDIUM…cs/test/gloas/fork/test_gloas_fork_onboard_builders.py249 # Create a pending deposit for an existing validator (top-up)COMMENT
MEDIUM…cs/test/gloas/fork/test_gloas_fork_onboard_builders.py283 # Create a pending deposit for a new validator (not builder credentials)COMMENT
MEDIUM…cs/test/gloas/fork/test_gloas_fork_onboard_builders.py399 # Create a pending deposit with builder credentials but using validator's pubkeyCOMMENT
MEDIUM…est/gloas/block_processing/test_process_attestation.py614 # Create a same-slot attestation for slot 0 with two distinct attestersCOMMENT
MEDIUM…cessing/test_process_justification_and_finalization.py56 # Create a bitfield filled with the given count per attestation,COMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py67 # Create an unaggregated attestation (single validator) referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py270 # Create an unaggregated attestation referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py341 # Create an unaggregated attestation referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py414 # Create an unaggregated attestation referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py486 # Create an unaggregated attestation referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py624 # Create an attestation with multiple bits set (aggregated) referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py759 # Create an unaggregated attestation referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py856 # Create an attestation for the block that's not in storeCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py944 # Create an attestationCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py1017 # Create an attestation without signing, referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py1088 # Create an attestation with wrong target root, referencing anchor blockCOMMENT
MEDIUM…st/phase0/networking/test_gossip_beacon_attestation.py1180 # Create an attestationCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py32 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py66 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py111 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py155 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py199 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py241 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py280 # Create a valid proposer slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py329 # Create a proposer slashing with only second header signedCOMMENT
MEDIUM…est/phase0/networking/test_gossip_proposer_slashing.py369 # Create a proposer slashing with only first header signedCOMMENT
MEDIUM…0/networking/test_gossip_beacon_aggregate_and_proof.py675 # Create an attestation referencing the unseen blockCOMMENT
MEDIUM…0/networking/test_gossip_beacon_aggregate_and_proof.py886 # Create a second attestation with different data but the same aggregator.COMMENT
MEDIUM…0/networking/test_gossip_beacon_aggregate_and_proof.py1291 # Create an attestation with INVALID signature BEFORE creating the aggregateCOMMENT
MEDIUM…0/networking/test_gossip_beacon_aggregate_and_proof.py1424 # Create an attestation with wrong target root BEFORE signingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py32 # Create a valid attester slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py66 # Create a valid attester slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py111 # Create a valid attester slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py154 # Create an attester slashing with only second attestation signedCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py194 # Create an attester slashing with only first attestation signedCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py397 # Create a valid attester slashingCOMMENT
MEDIUM…est/phase0/networking/test_gossip_attester_slashing.py485 # Create a valid attester slashingCOMMENT
MEDIUM…pecs/test/phase0/unittests/fork_choice/test_on_tick.py40 # Create a block at epoch 1STRING
MEDIUM…pecs/test/phase0/unittests/fork_choice/test_on_tick.py50 # Create a block at the start of epoch 2STRING
MEDIUM…pecs/test/phase0/unittests/fork_choice/test_on_tick.py77 # Create a block at epoch 1COMMENT
MEDIUM…pecs/test/phase0/unittests/fork_choice/test_on_tick.py90 # Create a block at epoch 1COMMENT
MEDIUM…pecs/test/phase0/unittests/fork_choice/test_on_tick.py102 # Create a block at the start of epoch 2COMMENT
MEDIUM…nsus_specs/test/phase0/fork_choice/test_withholding.py62 # Create the attack block that includes justifying attestations for epoch 4COMMENT
MEDIUM…nsus_specs/test/phase0/fork_choice/test_withholding.py81 # Create an honest chain in epoch 5 that includes the justifying attestations from the attack blockCOMMENT
MEDIUM…nsus_specs/test/phase0/fork_choice/test_withholding.py164 # Create the attack block that includes justifying attestations for epoch 5COMMENT
MEDIUM…nsus_specs/test/phase0/fork_choice/test_withholding.py180 # Create an honest chain in epoch 6 that includes the justifying attestations from the attack blockCOMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_get_head.py571 # Create a fork from the earlier saved stateCOMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_get_head.py658 # Create a fork from the earlier saved stateCOMMENT
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_get_head.py750 # Create a fork from the earlier saved stateSTRING
MEDIUM…nsensus_specs/test/phase0/fork_choice/test_get_head.py764 # Create a chain in epoch 7 that has new justification for epoch 7STRING
24 more matches not shown…
Redundant / Tautological Comments56 hits · 93 pts
SeverityFileLineSnippetContext
LOW…sing/pending_deposits/test_process_pending_deposits.py483 # Set epoch to withdrawable epoch + 1 to allow processing of the depositCOMMENT
LOW…sing/pending_deposits/test_process_pending_deposits.py507 # Set epoch to withdrawable epoch + 1 to allow processing of the depositCOMMENT
LOW…sensus_specs/test/electra/sanity/blocks/test_blocks.py108 # Check if BTEC was appliedCOMMENT
LOW…sensus_specs/test/electra/sanity/blocks/test_blocks.py142 # Check if BTEC is effectCOMMENT
LOW…block_processing/test_process_consolidation_request.py40 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py50 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py87 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py97 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py139 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py149 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py182 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py192 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py226 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py236 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py273 # Set source to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py283 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py318 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py328 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py468 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py478 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py515 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py525 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py367 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py382 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py420 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py436 # Set target to compounding credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py553 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py572 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py598 # Set source to eth1 credentialsCOMMENT
LOW…block_processing/test_process_consolidation_request.py975 # Set target to eth1 credentialsCOMMENT
LOW…_specs/test/altair/fork/test_fork_active_validators.py46 # Set exit_epoch to a future epoch within MIN_SEED_LOOKAHEAD + 1 rangeCOMMENT
LOW…_specs/test/altair/fork/test_fork_active_validators.py105 # Set exit_epoch to a future epoch within MIN_SEED_LOOKAHEAD + 1 rangeCOMMENT
LOW…eth_consensus_specs/test/capella/sanity/test_blocks.py249 # Set latest_block_hash to match latest_execution_payload_bid.block_hashCOMMENT
LOW…cs/test/fulu/fork/test_fulu_fork_proposer_lookahead.py41 # Check if the pre-fork simulation matches the post-fork `state.proposer_lookahead`COMMENT
LOW…cs/test/fulu/fork/test_fulu_fork_proposer_lookahead.py59 # Set exit_epoch to a future epoch within MIN_SEED_LOOKAHEAD + 1 rangeCOMMENT
LOW…eth_consensus_specs/test/fulu/sanity/test_lookahead.py32 # Set balance to close the next hysteresis thresholdCOMMENT
LOW…epoch_processing/test_process_rewards_and_penalties.py155 # Check if base rewards are consistent with effective balance.COMMENT
LOW…cessing/test_process_justification_and_finalization.py50 # Check if we already have had sufficient balance. (and undone if we don't want it).COMMENT
LOW…c/eth_consensus_specs/test/phase0/sanity/test_slots.py115 # Check if the proposer changed as a result of the balance changeCOMMENT
LOW…pyspec/eth_consensus_specs/test/helpers/withdrawals.py511 # Check if builder index is validCOMMENT
LOW…pyspec/eth_consensus_specs/test/helpers/withdrawals.py568 # Set withdrawable_epoch to make builder eligible for sweepCOMMENT
LOW…pyspec/eth_consensus_specs/test/helpers/withdrawals.py578 # Check if validator index is validCOMMENT
LOW…sus_specs/test/helpers/light_client_data_collection.py413 # Check if light client data improvedCOMMENT
LOW…nsensus_specs/test/helpers/builder_deposit_requests.py161 # Check if this was a new builder or top-upCOMMENT
LOW…core/pyspec/eth_consensus_specs/test/helpers/random.py228 # Set validator to compounding type with MAX_EFFECTIVE_BALANCE_ELECTRACOMMENT
LOW…/eth_consensus_specs/test/helpers/execution_payload.py303 # Set block_hash to a different value than spec.Hash32(),COMMENT
LOW…_consensus_specs/test/helpers/execution_payload_bid.py104 # Check if this is a self-build caseCOMMENT
LOW…c/eth_consensus_specs/test/helpers/multi_operations.py315 # Set this to reasonably high arbitrary limit.COMMENT
LOWtests/core/pyspec/eth_consensus_specs/utils/bls.py240 # Check if we need to perform a G1 or G2 multiexpCOMMENT
LOW…iance_runners/fork_choice/instantiators/block_cover.py37 # Check if any child of the block justifies the epochCOMMENT
LOWscripts/check_fork_comments.py36 # Check if action is valid (only "New" or "Modified" allowed)COMMENT
LOWscripts/check_fork_comments.py64 # Check if the fork comment is within a Python-style commentCOMMENT
LOWscripts/check_fork_comments.py73 # Check if there's any non-whitespace content before the #COMMENT
LOWscripts/check_fork_comments.py89 # Check if there's any non-whitespace content after the fork commentCOMMENT
LOW.github/workflows/checks.yml60 # Check if starts with capital letterCOMMENT
LOW.github/workflows/checks.yml66 # Check if ends with punctuationCOMMENT
Over-Commented Block51 hits · 50 pts
SeverityFileLineSnippetContext
LOWspecs/gloas/beacon-chain.md841 deposits: DepositsCOMMENT
LOW…_consensus_specs/test/altair/light_client/test_sync.py81 test, spec, state, block, attested_state, attested_block, finalized_blockCOMMENT
LOW…_consensus_specs/test/altair/light_client/test_sync.py121 assert test.store.best_valid_update is NoneCOMMENT
LOW…_consensus_specs/test/altair/light_client/test_sync.py181 assert test.store.next_sync_committee == finalized_state.next_sync_committeeCOMMENT
LOW…_consensus_specs/test/altair/light_client/test_sync.py221 # ```COMMENT
LOW…_consensus_specs/test/altair/light_client/test_sync.py281 assert test.store.best_valid_update is NoneCOMMENT
LOW…/unittests/validator/test_prepare_execution_payload.py121 # post-block_1 balance. payload.withdrawals must hash-equalCOMMENT
LOW…nsensus_specs/test/gloas/sanity/test_epoch_boundary.py501COMMENT
LOW…s/test/phase0/fast_confirmation/test_previous_epoch.py161 # prev_epoch | curr_epochCOMMENT
LOW…s/test/phase0/fast_confirmation/test_previous_epoch.py221 target_block_rate = 50COMMENT
LOWconfigs/minimal.yaml1# Minimal configCOMMENT
LOWconfigs/minimal.yaml21# ---------------------------------------------------------------COMMENT
LOWconfigs/minimal.yaml141# ---------------------------------------------------------------COMMENT
LOWconfigs/mainnet.yaml1# Mainnet configCOMMENT
LOWconfigs/mainnet.yaml21TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH: 18446744073709551615COMMENT
LOWpresets/minimal/eip8148.yaml1# Minimal preset - EIP8148COMMENT
LOWpresets/minimal/altair.yaml1# Minimal preset - AltairCOMMENT
LOWpresets/minimal/deneb.yaml1# Minimal preset - DenebCOMMENT
LOWpresets/minimal/bellatrix.yaml1# Minimal preset - BellatrixCOMMENT
LOWpresets/minimal/heze.yaml1# Minimal preset - HezeCOMMENT
LOWpresets/minimal/eip8205.yaml1# Minimal preset - EIP8205COMMENT
LOWpresets/minimal/eip8321.yaml1# Minimal preset - EIP8321COMMENT
LOWpresets/minimal/fulu.yaml1# Minimal preset - FuluCOMMENT
LOWpresets/minimal/electra.yaml1# Minimal preset - ElectraCOMMENT
LOWpresets/minimal/electra.yaml21# [customized] 2**6 (= 64) pending partial withdrawalsCOMMENT
LOWpresets/minimal/electra.yaml41COMMENT
LOWpresets/minimal/gloas.yaml1# Minimal preset - GloasCOMMENT
LOWpresets/minimal/gloas.yaml21# ---------------------------------------------------------------COMMENT
LOWpresets/minimal/phase0.yaml1# Minimal preset - Phase0COMMENT
LOWpresets/minimal/phase0.yaml21# ---------------------------------------------------------------COMMENT
LOWpresets/minimal/phase0.yaml41# [customized] 2**6 (= 64) slotsCOMMENT
LOWpresets/minimal/phase0.yaml61# 2**9 (= 512)COMMENT
LOWpresets/minimal/capella.yaml1# Minimal preset - CapellaCOMMENT
LOWpresets/mainnet/eip8148.yaml1# Mainnet preset - EIP8148COMMENT
LOWpresets/mainnet/altair.yaml1# Mainnet preset - AltairCOMMENT
LOWpresets/mainnet/deneb.yaml1# Mainnet preset - DenebCOMMENT
LOWpresets/mainnet/bellatrix.yaml1# Mainnet preset - BellatrixCOMMENT
LOWpresets/mainnet/heze.yaml1# Mainnet preset - HezeCOMMENT
LOWpresets/mainnet/eip8205.yaml1# Mainnet preset - EIP8205COMMENT
LOWpresets/mainnet/eip8321.yaml1# Mainnet preset - EIP8321COMMENT
LOWpresets/mainnet/fulu.yaml1# Mainnet preset - FuluCOMMENT
LOWpresets/mainnet/electra.yaml1# Mainnet preset - ElectraCOMMENT
LOWpresets/mainnet/electra.yaml21# 2**27 (= 134,217,728) pending partial withdrawalsCOMMENT
LOWpresets/mainnet/electra.yaml41COMMENT
LOWpresets/mainnet/gloas.yaml1# Mainnet preset - GloasCOMMENT
LOWpresets/mainnet/gloas.yaml21# ---------------------------------------------------------------COMMENT
LOWpresets/mainnet/phase0.yaml1# Mainnet preset - Phase0COMMENT
LOWpresets/mainnet/phase0.yaml21# ---------------------------------------------------------------COMMENT
LOWpresets/mainnet/phase0.yaml41# 2**13 (= 8,192) slotsCOMMENT
LOWpresets/mainnet/phase0.yaml61# 2**9 (= 512)COMMENT
LOWpresets/mainnet/capella.yaml1# Mainnet preset - CapellaCOMMENT
Deep Nesting48 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/core/pyspec/eth_consensus_specs/test/context.py398CODE
LOWtests/core/pyspec/eth_consensus_specs/test/context.py650CODE
LOWtests/core/pyspec/eth_consensus_specs/test/context.py748CODE
LOWtests/core/pyspec/eth_consensus_specs/test/context.py656CODE
LOWtests/core/pyspec/eth_consensus_specs/test/context.py657CODE
LOW…pec/eth_consensus_specs/test/utils/block_randomized.py167CODE
LOW…spec/eth_consensus_specs/test/utils/yield_generator.py13CODE
LOW…epoch_processing/test_process_rewards_and_penalties.py45CODE
LOW…cessing/test_process_justification_and_finalization.py16CODE
LOW…_consensus_specs/test/phase0/finality/test_finality.py115CODE
LOW…_consensus_specs/test/phase0/finality/test_finality.py165CODE
LOW…s/test/bellatrix/unittests/validator/test_validator.py36CODE
LOW…pyspec/eth_consensus_specs/test/helpers/fork_choice.py326CODE
LOW…pyspec/eth_consensus_specs/test/helpers/withdrawals.py328CODE
LOW…/eth_consensus_specs/test/helpers/fast_confirmation.py221CODE
LOW…sus_specs/test/helpers/light_client_data_collection.py703CODE
LOW…nsensus_specs/test/helpers/builder_deposit_requests.py20CODE
LOW…ec/eth_consensus_specs/test/helpers/fork_transition.py333CODE
LOW…ec/eth_consensus_specs/test/helpers/fork_transition.py429CODE
LOW…yspec/eth_consensus_specs/test/helpers/attestations.py468CODE
LOW…ore/pyspec/eth_consensus_specs/test/helpers/rewards.py147CODE
LOW…ore/pyspec/eth_consensus_specs/test/helpers/rewards.py254CODE
LOWtests/core/pyspec/eth_consensus_specs/debug/encode.py12CODE
LOW…/core/pyspec/eth_consensus_specs/debug/random_value.py40CODE
LOWtests/core/pyspec/eth_consensus_specs/debug/decode.py14CODE
LOW…liance_runners/fork_choice/instantiators/block_tree.py222CODE
LOW…liance_runners/fork_choice/instantiators/block_tree.py757CODE
LOW…liance_runners/fork_choice/instantiators/block_tree.py919CODE
LOW…liance_runners/fork_choice/instantiators/block_tree.py943CODE
LOW…pliance_runners/fork_choice/instantiators/test_case.py298CODE
LOW…pliance_runners/fork_choice/instantiators/test_case.py578CODE
LOW…pliance_runners/fork_choice/instantiators/scheduler.py70CODE
LOW…iance_runners/fork_choice/instantiators/block_cover.py41CODE
LOW…iance_runners/fork_choice/instantiators/block_cover.py315CODE
LOW…ompliance_runners/fork_choice/instantiators/helpers.py504CODE
LOW…ompliance_runners/fork_choice/instantiators/helpers.py562CODE
LOW…ompliance_runners/fork_choice/instantiators/helpers.py581CODE
LOW…ompliance_runners/fork_choice/instantiators/helpers.py619CODE
LOW…ompliance_runners/fork_choice/instantiators/helpers.py525CODE
LOW…ompliance_runners/fork_choice/instantiators/helpers.py563CODE
LOW…tors/compliance_runners/fork_choice/runner/test_run.py76CODE
LOWscripts/combine_preset_coverage.py47CODE
LOWscripts/check_fork_comments.py11CODE
LOWscripts/check_value_annotations.py87CODE
LOWscripts/gen_spec_indices.py40CODE
LOWpysetup/md_to_spec.py143CODE
LOWpysetup/md_to_spec.py239CODE
LOWpysetup/md_doc_paths.py74CODE
Excessive Try-Catch Wrapping24 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/core/pyspec/eth_consensus_specs/test/context.py392 except Exception:CODE
LOW…/test/bellatrix/unittests/test_validate_merge_block.py46 except Exception as e:CODE
LOW…ec/eth_consensus_specs/test/helpers/fork_transition.py194 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py58 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py65 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py77 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py89 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py96 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py103 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py116 except Exception as e:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/kzg.py127 except Exception as e:CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py55def blob_to_kzg_commitment(blob):CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py62def compute_blob_kzg_proof(blob, commitment_bytes):CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py69def verify_blob_kzg_proof(blob, commitment_bytes, proof_bytes):CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py81def verify_blob_kzg_proof_batch(blobs, commitments_bytes, proofs_bytes):CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py93def compute_cells(blob):CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py100def compute_cells_and_kzg_proofs(blob):CODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py107def verify_cell_kzg_proof_batch(commitments_bytes, cell_indices, cells, proofs_bCODE
MEDIUMtests/core/pyspec/eth_consensus_specs/utils/kzg.py120def recover_cells_and_kzg_proofs(cell_indices, cells):CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/bls.py60 except Exception:CODE
LOWtests/core/pyspec/eth_consensus_specs/utils/bls.py70 except Exception:CODE
LOWscripts/check_value_annotations.py51 except Exception:CODE
MEDIUMpysetup/generate_specs.py375 print(f"Error: {e}", file=sys.stderr)STRING
LOWpysetup/generate_specs.py377 except Exception as e:STRING
Unused Imports16 hits · 16 pts
SeverityFileLineSnippetContext
LOW…/electra/epoch_processing/pending_deposits/__init__.py2CODE
LOW…/electra/epoch_processing/pending_deposits/__init__.py3CODE
LOW…consensus_specs/test/electra/sanity/blocks/__init__.py3CODE
LOW…consensus_specs/test/electra/sanity/blocks/__init__.py4CODE
LOW…core/pyspec/eth_consensus_specs/test/utils/manifest.py1CODE
LOW…core/pyspec/eth_consensus_specs/test/utils/__init__.py1CODE
LOW…core/pyspec/eth_consensus_specs/test/utils/__init__.py4CODE
LOW…pec/eth_consensus_specs/test/utils/block_randomized.py26CODE
LOW…consensus_specs/test/pytest_plugins/yield_generator.py1CODE
LOW…core/pyspec/eth_consensus_specs/test/helpers/merkle.py1CODE
LOW…/generators/compliance_runners/fork_choice/conftest.py1CODE
LOW…s/compliance_runners/fork_choice/generate_comptests.py1CODE
LOW…nerators/compliance_runners/gen_base/pytest_support.py1CODE
LOW…s/generators/compliance_runners/gen_base/gen_typing.py1CODE
LOWtests/generators/compliance_runners/gen_base/output.py1CODE
LOWpysetup/md_to_spec.py13CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…cs/test/gloas/light_client/test_single_merkle_proof.py26 + block.message.body.signed_execution_payload_bid.message.parent_block_hash.hex(),CODE
AI Structural Patterns8 hits · 7 pts
SeverityFileLineSnippetContext
LOW…pyspec/eth_consensus_specs/test/helpers/withdrawals.py328CODE
LOW…pyspec/eth_consensus_specs/test/helpers/withdrawals.py631CODE
LOW…/eth_consensus_specs/test/helpers/fast_confirmation.py221CODE
LOW…nsensus_specs/test/helpers/builder_deposit_requests.py20CODE
LOW…nsensus_specs/test/helpers/builder_deposit_requests.py110CODE
LOW…yspec/eth_consensus_specs/test/helpers/attestations.py112CODE
LOW…eth_consensus_specs/test/helpers/proposer_slashings.py253CODE
LOW…_consensus_specs/test/helpers/execution_payload_bid.py27CODE
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtests/core/pyspec/eth_consensus_specs/test/context.py270 # Double validators to facilitate randomized testingCOMMENT
LOW…spec/eth_consensus_specs/test/utils/yield_generator.py82 # If the function is not a generator, just return it as-is.COMMENT
LOWpysetup/md_to_spec.py372 # For minimal, we expect this to be different; just use the file configCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/core/pyspec/eth_consensus_specs/debug/tools.py15 Get the SSZObject from an SSZ-encoded file. Automatically detects whether the file is snappy-compressed based STRING
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…cessing/test_process_justification_and_finalization.py339 # Step 1: Exit ~1/2 vals in current epochCOMMENT
LOW…s/test/bellatrix/unittests/validator/test_validator.py18# NOTE: The following parameter names are in the view of the head block (the second block)COMMENT
LOW…/core/pyspec/eth_consensus_specs/test/helpers/state.py111# WARNING: The following functions can only be used post-altair due to the manipulation of participation flags directlyCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…core/pyspec/eth_consensus_specs/test/utils/__init__.py6__all__ = [ # avoid "unused import" lint errorCODE
LOW…core/pyspec/eth_consensus_specs/test/helpers/merkle.py5__all__ = ["build_proof", "get_generalized_index"]CODE
LOW…s/generators/compliance_runners/gen_base/gen_typing.py38 def set_output_dir(self, output_dir: str) -> None:CODE
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOW…pyspec/eth_consensus_specs/test/utils/template_test.py22 def test_function(spec, state):STRING
LOW…pyspec/eth_consensus_specs/test/utils/template_test.py70 def test_function(spec, state):STRING
LOW…pyspec/eth_consensus_specs/test/utils/template_test.py130 def test_function(spec, state):STRING
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…cessing/test_process_justification_and_finalization.py339 # Step 1: Exit ~1/2 vals in current epochCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…c/eth_consensus_specs/test/helpers/epoch_processing.py10 # Note: make sure to explicitly remove/override a processing function in later phases,COMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…nsensus_specs/test/phase0/fork_choice/test_on_block.py87 # TODO: add tests for justified_root and finalized_rootCOMMENT