Beacon API: cap the slot a beacon_committee_subscriptions entry joins a subnet until
Mantenedores costumam responder em até 6 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 52/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- backend, documentation, networking
Direção de pesquisa
Start with post_committee_subscriptions in crates/net/rpc/src/beacon/validator.rs and compare its slot handling with post_sync_committee_subscriptions in crates/net/rpc/src/beacon/sync_committee.rs. Read the referenced sync clamp test, then check the aggregator subnet join and expiry paths in crates/net/p2p/src/gossipsub/handler.rs. Done means future slots are capped or rejected at the stated epoch bound, the behavior is tested, and the outdated clause is removed from docs/rpc.md.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem. POST /eth/v1/validator/beacon_committee_subscriptions lets the caller choose how long the node stays on an attestation subnet, with no upper bound.
post_committee_subscriptions(crates/net/rpc/src/beacon/validator.rs:307-331) passes each aggregator entry'sslotthrough as sent.join_aggregator_subnets(crates/net/p2p/src/gossipsub/handler.rs:1156-1186) keeps the largest slot it has seen for a subnet.leave_expired_aggregator_subnets(handler.rs:1251-1264) leaves the subnet only once that slot has passed.
So one request with is_aggregator: true and a far-future slot keeps the node subscribed until restart. That costs it bandwidth and gossip validation on that subnet. With 64 entries, one per subnet, it holds every attestation subnet. The sync committee endpoint does not have this gap: post_sync_committee_subscriptions clamps until_epoch to the end of the next sync committee period (crates/net/rpc/src/beacon/sync_committee.rs:320-338).
Why it is out of scope. lambdaclass/ethlambda#778 is docs-only. It documents the gap in docs/rpc.md's "What the servers trust" ("an attestation subnet's is not capped") and does not change it.
Fix. Clamp, or refuse with a 400, any slot past the last slot of the furthest epoch attester duties are served for. That epoch is epoch_upper_bound, the wall-clock or head epoch plus one (validator.rs:422-425, enforced by attester_duties at validator.rs:688). A validator client cannot hold a legitimate duty beyond it.
- Model the change and its test on the sync clamp (
subscriptions_group_by_subnet_keep_the_latest_epoch_and_clamp_it, sync_committee.rs:872). - Then drop the "not capped" clause from
docs/rpc.md.
- Linguagem predominante
- Rust
- Estrelas
- 86
- Forks
- 34
- Merge médio
- 9d 20h
- PRs com merge (30d)
- 77
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de lambdaclass/ethlambda
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
lambdaclass/ethlambda#850 ·
Mantenedores costumam responder em até 6 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
lambdaclass/ethlambda#777 · 1 reação ·
Mantenedores costumam responder em até 6 dias
-
Run all gossip validation testsTalvez livre de novo @dicethedev assumiu há 9 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
lambdaclass/ethlambda#725 · 2 comentários ·
Mantenedores costumam responder em até 6 dias
-
Handle malformed DB dataTalvez livre de novo @dicethedev assumiu há 115 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
lambdaclass/ethlambda#529 · 4 comentários ·
Mantenedores costumam responder em até 6 dias
-
Document architectural choicesTalvez livre de novo @dicethedev assumiu há 115 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
lambdaclass/ethlambda#521 · 2 comentários ·
Mantenedores costumam responder em até 6 dias
Todas as issues de lambdaclass/ethlambda
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
antithesishq/bombadil#473 ·
Mantenedores costumam responder em até 2 dias
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
libracoder/kiri#669 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 5 dias
-
autofixer: follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
tursodatabase/turso#12217 ·
Mantenedores costumam responder em até 1 dia
-
Declare the CMS schema library in the optional recipients extraTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea:python in-progress
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
yhay81/pyropdf#1005 · 2 comentários ·
Mantenedores costumam responder em até 1 dia