Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Give BlockBuilder time to register; fix same block duplicate txns regression #196

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

nyospe
Copy link
Contributor

@nyospe nyospe commented Jun 28, 2024

Closes #194
Closes #195

This PR:

  • Immediately returns an error from available_blocks if Decide already reached (unless this is bootstrapping)
  • Adds a wait attempt if the appropriate block builder doesn't exist
  • Adds back same block duplicate txn filtering

See here: https://espresso.zulipchat.com/#narrow/stream/419229-Testnet-V5-.28Cappuccino.29/topic/Builder.20Changes.2FUpgrades.2FBugfixes/near/447823430

@nyospe nyospe requested review from jbearer and QuentinI June 28, 2024 22:35
Copy link
Member

@jbearer jbearer left a comment

Choose a reason for hiding this comment

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

Makes sense to me. Would be nice to have some tests for this

@nyospe nyospe merged commit 778fc05 into main Jul 1, 2024
5 checks passed
nyospe added a commit to EspressoSystems/espresso-sequencer that referenced this pull request Jul 2, 2024
Fixes timing of flawed unit test, revealed by
EspressoSystems/hotshot-builder-core#196

### This PR:
Changes a wait from 3 seconds to half a second, to avoid a timing
failure on a unit test

### This PR does not:
Do anything else of significance
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wait to use correct block builder if at all possible Fix same block duplicate txns regression
2 participants