Skip to content

Commit 2b95976

Browse files
Move metric to eth2_processor
2 parents 994929a + 0919c1d commit 2b95976

File tree

93 files changed

+3821
-1634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3821
-1634
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,6 @@ jobs:
8989
7z x -y "external/mingw-${{ matrix.target.cpu }}.zip" -oexternal/mingw-${{ matrix.target.cpu }}/
9090
mv external/mingw-${{ matrix.target.cpu }}/**/* ./external/mingw-${{ matrix.target.cpu }}
9191
92-
- name: Restore Nim DLLs dependencies (Windows) from cache
93-
if: runner.os == 'Windows'
94-
id: windows-dlls-cache
95-
uses: actions/cache@v4
96-
with:
97-
path: external/dlls-${{ matrix.target.cpu }}
98-
key: 'dlls-${{ matrix.target.cpu }}'
99-
100-
- name: Install DLLs dependencies (Windows)
101-
if: >
102-
steps.windows-dlls-cache.outputs.cache-hit != 'true' &&
103-
runner.os == 'Windows'
104-
run: |
105-
mkdir -p external
106-
curl -L "https://nim-lang.org/download/windeps.zip" -o external/windeps.zip
107-
7z x -y external/windeps.zip -oexternal/dlls-${{ matrix.target.cpu }}
108-
10992
- name: Path to cached dependencies (Windows)
11093
if: >
11194
runner.os == 'Windows'
@@ -227,7 +210,6 @@ jobs:
227210
- name: Build files with isMainModule
228211
run: |
229212
executables=(
230-
"beacon_chain/el/deposit_contract"
231213
"beacon_chain/fork_choice/fork_choice"
232214
"beacon_chain/fork_choice/proto_array"
233215
"beacon_chain/networking/network_metadata_downloads"

AllTests-mainnet.md

Lines changed: 312 additions & 287 deletions
Large diffs are not rendered by default.

ConsensusSpecPreset-mainnet.md

Lines changed: 96 additions & 3 deletions
Large diffs are not rendered by default.

ConsensusSpecPreset-minimal.md

Lines changed: 108 additions & 3 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ TOOLS_CORE_CUSTOMCOMPILE := \
5656
libnimbus_lc.a
5757

5858
TOOLS_CORE := \
59-
deposit_contract \
6059
resttest \
6160
mev_mock \
6261
ncli \
@@ -80,7 +79,6 @@ TOOLS := $(TOOLS_CORE) nimbus_beacon_node
8079

8180
TOOLS_DIRS := \
8281
beacon_chain \
83-
beacon_chain/el \
8482
ncli \
8583
research \
8684
tools
@@ -566,34 +564,6 @@ define CONNECT_TO_NETWORK_WITH_LIGHT_CLIENT
566564
--trusted-block-root="$(LC_TRUSTED_BLOCK_ROOT)"
567565
endef
568566

569-
define MAKE_DEPOSIT_DATA
570-
build/nimbus_beacon_node deposits createTestnetDeposits \
571-
--network=$(1) \
572-
--new-wallet-file=build/data/shared_$(1)_$(NODE_ID)/wallet.json \
573-
--out-validators-dir=build/data/shared_$(1)_$(NODE_ID)/validators \
574-
--out-secrets-dir=build/data/shared_$(1)_$(NODE_ID)/secrets \
575-
--out-deposits-file=$(1)-deposits_data-$$(date +"%Y%m%d%H%M%S").json \
576-
--count=$(VALIDATORS)
577-
endef
578-
579-
define MAKE_DEPOSIT
580-
build/nimbus_beacon_node deposits createTestnetDeposits \
581-
--network=$(1) \
582-
--out-deposits-file=nbc-$(1)-deposits.json \
583-
--new-wallet-file=build/data/shared_$(1)_$(NODE_ID)/wallet.json \
584-
--out-validators-dir=build/data/shared_$(1)_$(NODE_ID)/validators \
585-
--out-secrets-dir=build/data/shared_$(1)_$(NODE_ID)/secrets \
586-
--count=$(VALIDATORS)
587-
588-
build/deposit_contract sendDeposits \
589-
$(2) \
590-
--deposit-contract=$$(cat vendor/$(1)/metadata/deposit_contract.txt) \
591-
--deposits-file=nbc-$(1)-deposits.json \
592-
--min-delay=$(DEPOSITS_DELAY) \
593-
--max-delay=$(DEPOSITS_DELAY) \
594-
--ask-for-key
595-
endef
596-
597567
define CLEAN_NETWORK
598568
rm -rf build/data/shared_$(1)*/db
599569
rm -rf build/data/shared_$(1)*/dump
@@ -623,27 +593,19 @@ sepolia-dev: | sepolia-build
623593
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,sepolia,nimbus_beacon_node,$(SEPOLIA_WEB3_URL))
624594
endif
625595

626-
sepolia-dev-deposit: | sepolia-build deposit_contract
627-
$(call MAKE_DEPOSIT,sepolia,$(SEPOLIA_WEB3_URL))
628-
629596
clean-sepolia:
630597
$(call CLEAN_NETWORK,sepolia)
631598

632599
###
633600
### Gnosis chain binary
634601
###
635602

636-
# TODO The `-d:gnosisChainBinary` override can be removed if the web3 library
637-
# gains support for multiple "Chain Profiles" that consist of a set of
638-
# consensus object (such as blocks and transactions) that are specific
639-
# to the chain.
640603
gnosis-build gnosis-chain-build: | build deps
641604
+ echo -e $(BUILD_MSG) "build/nimbus_beacon_node_gnosis" && \
642605
MAKE="$(MAKE)" V="$(V)" $(ENV_SCRIPT) scripts/compile_nim_program.sh \
643606
nimbus_beacon_node_gnosis \
644607
beacon_chain/nimbus_beacon_node.nim \
645608
$(NIM_PARAMS) \
646-
-d:gnosisChainBinary \
647609
-d:const_preset=gnosis \
648610
&& \
649611
echo -e $(BUILD_END_MSG) "build/nimbus_beacon_node_gnosis"
@@ -654,7 +616,6 @@ gnosis-vc-build: | build deps
654616
nimbus_validator_client_gnosis \
655617
beacon_chain/nimbus_validator_client.nim \
656618
$(NIM_PARAMS) \
657-
-d:gnosisChainBinary \
658619
-d:const_preset=gnosis \
659620
&& \
660621
echo -e $(BUILD_END_MSG) "build/nimbus_validator_client_gnosis"
@@ -670,9 +631,6 @@ gnosis-dev: | gnosis-build
670631
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,gnosis,nimbus_beacon_node_gnosis,$(GNOSIS_WEB3_URLS))
671632
endif
672633

673-
gnosis-dev-deposit: | gnosis-build deposit_contract
674-
$(call MAKE_DEPOSIT,gnosis,$(GNOSIS_WEB3_URLS))
675-
676634
clean-gnosis:
677635
$(call CLEAN_NETWORK,gnosis)
678636

@@ -690,10 +648,6 @@ gnosis-chain-dev: | gnosis-build
690648
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,gnosis-chain,nimbus_beacon_node_gnosis,$(GNOSIS_WEB3_URLS))
691649
endif
692650

693-
gnosis-chain-dev-deposit: | gnosis-build deposit_contract
694-
echo `gnosis-chain-dev-deposit` is deprecated, use `gnosis-chain-dev-deposit` instead
695-
$(call MAKE_DEPOSIT,gnosis-chain,$(GNOSIS_WEB3_URLS))
696-
697651
clean-gnosis-chain:
698652
$(call CLEAN_NETWORK,gnosis-chain)
699653

beacon_chain/beacon_node.nim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import
2323
./el/el_manager,
2424
./consensus_object_pools/[
2525
blockchain_dag, blob_quarantine, block_quarantine, consensus_manager,
26-
data_column_quarantine, attestation_pool, sync_committee_msg_pool, validator_change_pool,
26+
attestation_pool, sync_committee_msg_pool, validator_change_pool,
2727
blockchain_list],
28-
./spec/datatypes/[base, altair],
28+
./spec/datatypes/[base, altair, fulu],
2929
./spec/eth2_apis/dynamic_fee_recipients,
3030
./spec/signatures_batch,
3131
./sync/[sync_manager, request_manager, sync_types],
@@ -56,6 +56,7 @@ type
5656
phase0AttSlashQueue*: AsyncEventQueue[phase0.AttesterSlashing]
5757
electraAttSlashQueue*: AsyncEventQueue[electra.AttesterSlashing]
5858
blobSidecarQueue*: AsyncEventQueue[BlobSidecarInfoObject]
59+
columnSidecarQueue*: AsyncEventQueue[DataColumnSidecar]
5960
finalQueue*: AsyncEventQueue[FinalizationInfoObject]
6061
reorgQueue*: AsyncEventQueue[ReorgInfoObject]
6162
contribQueue*: AsyncEventQueue[SignedContributionAndProof]
@@ -81,7 +82,7 @@ type
8182
list*: ChainListRef
8283
quarantine*: ref Quarantine
8384
blobQuarantine*: ref BlobQuarantine
84-
dataColumnQuarantine*: ref DataColumnQuarantine
85+
dataColumnQuarantine*: ref ColumnQuarantine
8586
attestationPool*: ref AttestationPool
8687
syncCommitteeMsgPool*: ref SyncCommitteeMsgPool
8788
lightClientPool*: ref LightClientPool

beacon_chain/conf.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ type
374374
name: "genesis-state-url" .}: Option[Uri]
375375

376376
finalizedDepositTreeSnapshot* {.
377-
desc: "SSZ file specifying a recent finalized EIP-4881 deposit tree snapshot"
377+
hidden
378378
name: "finalized-deposit-tree-snapshot" .}: Option[InputFile]
379379

380380
finalizedCheckpointBlock* {.

beacon_chain/consensus_object_pools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This folder holds the various consensus object pools needed for a blockchain cli
44

55
Object in those pools have passed the "gossip validation" filter according
66
to specs:
7-
- blocks: https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/p2p-interface.md#beacon_block
7+
- blocks: https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#beacon_block
88
- aggregate attestations: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
99
- unaggregated attestation: https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/phase0/p2p-interface.md#beacon_attestation_subnet_id
1010
- voluntary exits: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#voluntary_exit

0 commit comments

Comments
 (0)