assign agent balances in TestConfig
@Parizval đang làm issue này rồi.
Từ ngày 19/12/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is your feature request related to a problem? Please describe.
--min-balance forces us to choose one balance for every pool, but different pools may have different needs. That's why they are differentiated in the first place.
Sometimes the contract deployer needs to have a lot of eth to set up the contracts, sometimes the spammers need lots of ETH so they can spam for days straight, etc...
Describe the solution you'd like
Modify PlanConfig and add a directive to TestConfig that lets you specify starting balance per agent, designated by from_pool names. Call it fund.
Example (TOML):
[fund]
admin = "1 eth"
spammers = "10 eth"
[[spam]]
[spam.tx]
from_pool = "spammers" # the account sending this will start with 10 eth
...
👉 Then repurpose --min-balance from the CLI. Instead of using it to fund accounts at the start, use it as a trigger to know when the accounts should be refilled. After every batch of txs is sent, check the balance of a single spammer account (any account, say #0), and if its balance is below min_balance, fund all spammer accounts with the amount specified by their allocation in fund.
In the case that a from_pool is not given an explicit designation in fund (or fund is not specified), assume 0.01 ETH to be its fund amount.
- Ngôn ngữ chính
- Rust
- Star
- 144
- Fork
- 58
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flashbots/contender
-
engine_newPayload filesĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
server: generate reportsĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
server: export DB from sessionCó thể làm lại được @zeroXbrock đã nhận 203 ngày trước và không có pull request nào đang mở. Đang mởenhancement help wanted question
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Tất cả issue của flashbots/contender
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
open-telemetry/weaver#1917 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug host P3 web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jphacks/kz_2613#589 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation pkg:sdk project
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
priority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
KATO-Hiro/AtCoderClans#13029 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
RustCrypto/formats#2544 ·
Maintainer thường phản hồi trong vòng 1 ngày