Skip to content

breaking up simulator code #69

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

Conversation

prestwich
Copy link
Member

based on #63

@prestwich prestwich changed the base branch from main to 03-16-adds_simulation_factory_to_builder April 9, 2025 16:07
Db: DatabaseRef + Clone + Sync,
Insp: Sync,
{
type Database = CacheOnWrite<Db>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the change from Arc<ConcurrentState> to only CacheOnWrite?

}

impl<In, Out, S> SimOutcome<In, Out, S> {
/// Creates a new `Best` instance.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: update comments which still call this Best

for handle in handles {
let result = handle.join().unwrap();
if let Some(candidate) = result {
if *candidate.score() > best_score {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: if the scores for all transactions are zero then best will remain None

(this might be what we want the behavior to be, or we might prefer that it returns one of the transactions?)

@prestwich
Copy link
Member Author

closing in favor of sdk work

@prestwich prestwich closed this Apr 16, 2025
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

Successfully merging this pull request may close these issues.

4 participants