feat(app): submit proposal preparations on startup and each epoch (setFeeRecipient)

未关闭
#528 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@varex83 已经在做这个了。

开始于 2026年9月17日。

  • #592 来自 @varex83agent —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

enhancement rust track:orchestration-cli

Part of #402 — follow-up to the app-wiring PR.

Scope

Register the proposal-preparations (setFeeRecipient) scheduler slot subscriber: on startup and on each epoch's first slot, submit ProposalPreparation{validator_index, fee_recipient} for every active cluster validator to the beacon node. Charon registers this as the first slot subscriber (app/app.go:475-478; implementation at app.go:1145-1193) — keep that registration order.

This is financial correctness on proposals: without it the node's beacon node never learns the fee recipients, so any block the cluster adopts from this node's BN pays execution rewards to the BN's default address. Charon peers only prepare their own BNs, so they cannot cover for a Pluto node in a mixed cluster.

Also surface fee-recipient hex-parse errors while implementing this: build_validators (crates/app/src/node/mod.rs) currently maps malformed/missing lock addresses to the zero address via unwrap_or_default, whereas Charon surfaces a decode error at proposal-preparation time — this issue is the natural place to align that.

Dependencies

  • #527 — eth2api submit_proposal_preparations client method.

Acceptance

  • First subscribe_slot subscriber; on_startup || first_in_epoch gate; no-op on zero active validators (Charon parity).
  • Malformed fee-recipient addresses produce an error, not a silent 0x0.
  • Wiring test against beaconmock asserting the POST content on startup and on an epoch boundary.
主要语言
Rust
星标
8
派生
5
平均合并
3 天 1 小时
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NethermindEth/pluto 的其他 Issue

查看 NethermindEth/pluto 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。