adjust live spam metrics inputs (txs_sent)

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust
领域
observability

调研方向

从 crates/core/src/util.rs 中的 contender_core::util::print_progress_report 开始,然后跟踪 txs_sent 当前在 run_txs 中从 confirmed_txs 和 failed_txs 派生的位置。确定交易发送路径,并确定线程安全的只读计数如何传递到报告函数。完成的标准是:短时间的 spam 运行报告已发送的交易,而不是只报告数据库中已确认或失败的记录。

由索引模型根据 Issue 内容生成。

描述

bug enhancement

Is your feature request related to a problem? Please describe.

When transactions are sent, the metrics collected by print_progress_report only reflect what's eventually confirmed on chain and saved to the DB. This gives the averaging algorithm a skewed input, which makes the metrics inaccurate, especially in short-duration spam runs.

Describe the solution you'd like

We need a new way of getting txs_sent -- it's currently defined as confirmed_txs + failed_txs which is derived from the DB (run_txs).
We need to internally track the number of txs sent as we send them, and pass a thread-safe (read-only) reference to that number to print_progress_report.

Additional context

see contender_core::util::print_progress_report

主要语言
Rust
星标
144
派生
58
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

flashbots/contender 的其他 Issue

查看 flashbots/contender 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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