logos-blockchain-testing/examples/doc-snippets/src/quickstart_step_1_topology.rs
2025-12-16 06:55:44 +01:00

10 lines
370 B
Rust

use testing_framework_core::scenario::ScenarioBuilder;
pub fn step_1_topology() -> testing_framework_core::scenario::Builder<()> {
ScenarioBuilder::topology_with(|t| {
t.network_star() // Star topology: all nodes connect to seed
.validators(1) // 1 validator node
.executors(1) // 1 executor node (validator + DA dispersal)
})
}