Skip to content

Commit 08ed547

Browse files
Merge pull request #435 from propeller-heads/cluster-test/dc/fix-+1-block-in-execution
fix: Don't increase the block number +1 to simulate execution
2 parents bd6bb82 + bc2c28e commit 08ed547

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tycho-test/src/execution/execution_simulator.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,7 @@ impl ExecutionSimulator {
199199
let (simulation_ids, simulation_inputs): (Vec<String>, Vec<SimulationInput>) =
200200
inputs.into_iter().unzip();
201201

202-
// If we use the current block number we will simulate over the state of the parent of this
203-
// block. We want to simulate over the state of the current block, so we need to simulate in
204-
// the next block
205-
let block_id = BlockId::from(block.number() + 1u64);
202+
let block_id = BlockId::from(block.number());
206203

207204
let client = ClientBuilder::default().http(self.rpc_url.parse()?);
208205

0 commit comments

Comments
 (0)