adjust live spam metrics inputs (txs_sent)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- rust
调研方向
从 crates/core/src/util.rs 中的 contender_core::util::print_progress_report 开始,然后跟踪 txs_sent 当前在 run_txs 中从 confirmed_txs 和 failed_txs 派生的位置。确定交易发送路径,并确定线程安全的只读计数如何传递到报告函数。完成的标准是:短时间的 spam 运行报告已发送的交易,而不是只报告数据库中已确认或失败的记录。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Rust
- 星标
- 144
- 派生
- 58
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
flashbots/contender 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 45/100
-
enhancement
难度 4/5 3-5 天 新手友好度 45/100
-
server: export DB from session可能重新可做 @zeroXbrock 于 203 天前认领,目前没有进行中的 PR。 未关闭enhancement help wanted question
-
enhancement
难度 4/5 3-5 天 新手友好度 62/100
-
bug
难度 3/5 1-2 天 新手友好度 52/100
查看 flashbots/contender 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
open-telemetry/weaver#1917 ·
维护者通常 2 天内回复
-
bug host P3 web
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
documentation pkg:sdk project
难度 2/5 1-3 小时 新手友好度 76/100
-
priority middle
难度 1/5 1 小时以内 新手友好度 72/100
KATO-Hiro/AtCoderClans#13029 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
RustCrypto/formats#2544 ·
维护者通常 1 天内回复