Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow --external-beacon-api-url to fallback to genesis if viable #5998

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

etan-status
Copy link
Contributor

When using --external-beacon-api-url, one has to accompany it with either --trusted-block-root or --trusted-state-root. If neither is specified, we can fallback to a deeply finalized noncontroversial block root. For networks that started post Altair, e.g., Holesky, the genesis block root fulfills that requirement, as in, it is implicitly trusted. Therefore, if only --external-beacon-api-url is provided without any --trusted-block-root or --trusted-state-root, use genesis block root if it is a viable starting point (post-Altair).

build/nimbus_beacon_node \
    --network=holesky \
    --data-dir="$HOME/Downloads/nimbus/data/holesky" \
    "--external-beacon-api-url=http://unstable.holesky.beacon-api.nimbus.team" \
    --tcp-port=9010 --udp-port=9010 \
    --rest --log-level=DEBUG \
    --no-el

When using `--external-beacon-api-url`, one has to accompany it with
either `--trusted-block-root` or `--trusted-state-root`. If neither is
specified, we can fallback to a deeply finalized noncontroversial block
root. For networks that started post Altair, e.g., Holesky, the genesis
block root fulfills that requirement, as in, it is implicitly trusted.
Therefore, if only `--external-beacon-api-url` is provided without any
`--trusted-block-root` or `--trusted-state-root`, use genesis block root
if it is a viable starting point (post-Altair).

```
build/nimbus_beacon_node \
    --network=holesky \
    --data-dir="$HOME/Downloads/nimbus/data/holesky" \
    "--external-beacon-api-url=http://unstable.holesky.beacon-api.nimbus.team" \
    --tcp-port=9010 --udp-port=9010 \
    --rest --log-level=DEBUG \
    --no-el
```
@etan-status
Copy link
Contributor Author

image

Copy link

Unit Test Results

         9 files  ±0    1 107 suites  ±0   28m 36s ⏱️ + 5m 14s
  4 233 tests ±0    3 886 ✔️ ±0  347 💤 ±0  0 ±0 
16 894 runs  ±0  16 496 ✔️ ±0  398 💤 ±0  0 ±0 

Results for commit e0477d1. ± Comparison against base commit 84b752c.

@etan-status etan-status merged commit 89d9dc2 into unstable Mar 5, 2024
13 checks passed
@etan-status etan-status deleted the dev/etan/ts-genboot branch March 5, 2024 14:41
etan-status added a commit that referenced this pull request Mar 8, 2024
Corrects a regression from #5998 that led to crashes in #6046.
In `trustedNodeSync` mode, the config does not contain genesis keys,
so attempting to load from them is a `Defect`.
etan-status added a commit that referenced this pull request Mar 8, 2024
)

Corrects a regression from #5998 that led to crashes in #6046.
In `trustedNodeSync` mode, the config does not contain genesis keys,
so attempting to load from them is a `Defect`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant