mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-02-17 03:33:08 +00:00
15 lines
514 B
Rust
15 lines
514 B
Rust
use testing_framework_core::scenario::{Scenario, ScenarioBuilder};
|
|
use testing_framework_workflows::ScenarioBuilderExt;
|
|
|
|
use crate::SnippetResult;
|
|
|
|
pub fn transactions_plan() -> SnippetResult<Scenario<()>> {
|
|
ScenarioBuilder::topology_with(|t| t.network_star().validators(1))
|
|
.wallets(50)
|
|
.transactions_with(|txs| {
|
|
txs.rate(5) // 5 transactions per block
|
|
.users(20) // Use 20 of the seeded wallets
|
|
}) // Finish transaction workload config
|
|
.build()
|
|
}
|