Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Rationale for result.nonces_after.len() == 1 restriction in process_simulation_task_result #279

Open
bhes74930321 opened this issue Dec 12, 2024 · 0 comments

Comments

@bhes74930321
Copy link

What is the purpose of the constraint result.nonces_after.len() == 1 in simtree.process_simulation_task_result?

   // we don't really need state here because nonces are cached but its smaller if we reuse pending state fn
    fn process_simulation_task_result(
        &mut self,
        result: SimulatedResult,
        state: &NonceCacheRef,
    ) -> Result<(), ProviderError> {
        self.sims.insert(result.id, result.clone());
        let mut orders_ready = Vec::new();
        if result.nonces_after.len() == 1 {
           ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant