transaction_fuzzer/config_fuzzer.rs
1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2024 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5use crate::{
6 account_universe::{AUTransactionGen, AccountUniverseGen, run_and_assert_universe},
7 executor::Executor,
8};
9
10/// Run transactions with the given reference gas price.
11pub fn run_rgp(
12 universe: AccountUniverseGen,
13 transaction_gens: Vec<impl AUTransactionGen + Clone>,
14 rgp: u64,
15) {
16 let mut executor = Executor::new_with_rgp(rgp);
17 assert!(run_and_assert_universe(universe, transaction_gens, &mut executor).is_ok());
18}
19
20// TODO: add other protocol config fuzzers here