refactor: remove skip_balance_check from run_test signature

This field is redundant, as it can be read directly from `config`
This commit is contained in:
adrian
2025-09-18 10:10:02 +02:00
committed by Adrian Benavides
parent a895d7e1fe
commit 9f4ff71b70
2 changed files with 9 additions and 12 deletions

View File

@@ -98,10 +98,9 @@ impl TychoRunner {
expected_components: &Vec<ProtocolComponentWithTestConfig>,
start_block: u64,
stop_block: u64,
skip_balance_check: bool,
) -> miette::Result<R>
where
F: FnOnce(&Vec<ProtocolComponentWithTestConfig>, u64, u64, bool) -> R,
F: FnOnce(&Vec<ProtocolComponentWithTestConfig>, u64, u64) -> R,
{
let (tx, rx): (Sender<bool>, Receiver<bool>) = mpsc::channel();
let db_url = self.db_url.clone();
@@ -141,7 +140,7 @@ impl TychoRunner {
thread::sleep(Duration::from_secs(3));
// Run the provided function
let result = func(expected_components, start_block, stop_block, skip_balance_check);
let result = func(expected_components, start_block, stop_block);
tx.send(true)
.expect("Failed to send termination message");