assign agent balances in TestConfig
@Parizval ci sta già lavorando.
Dal 19/12/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 144
- Fork
- 58
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flashbots/contender
-
engine_newPayload filesApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
server: generate reportsApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
server: export DB from sessionForse di nuovo libera @zeroXbrock l’ha presa 203 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement help wanted question
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 62/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
Tutte le issue di flashbots/contender
Issue simili
-
priority middle
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
KATO-Hiro/AtCoderClans#13029 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RustCrypto/formats#2544 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
userFRM/egui-charts#3363 ·
I maintainer di solito rispondono entro 1 giorno
-
ada documentation mobile report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kindraywind/rustnarok-client#1382 ·
I maintainer di solito rispondono entro 1 giorno