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

mock-consensus: 🍐 clarify builder kind in error #4003

Closed
wants to merge 1 commit into from

Conversation

cratelyn
Copy link
Contributor

there is a test node builder and a block builder. let's clarify which builder we mean in our error message. cherry-picked out of #4001.

there is a test node builder and a block builder. let's clarify which
builder we mean in our error message.
@cratelyn cratelyn added the A-mock-consensus Area: Relates to the mock consensus engine label Mar 12, 2024
@cratelyn cratelyn self-assigned this Mar 12, 2024
@cratelyn
Copy link
Contributor Author

this ends up being unnecessary due to another branch i'll have up shortly, since this pattern will no longer be refutable. closing this!

@cratelyn cratelyn closed this Mar 12, 2024
@cratelyn cratelyn deleted the kate/clarify-a-mock-consensus-error branch March 12, 2024 00:15
cratelyn added a commit that referenced this pull request Mar 12, 2024
)

fixes #3936. based upon #4002. see #3588.

this changes the type of the block builder's `data`, allowing it to be
implicitly kept empty. this is useful when e.g. fast forwarding a number
of blocks _(see #4002)_. this spares us the need to call
`with_data(vec![])`, and additionally means that the block builder is
never in an uninitialized state _(making #4003 needless)._

* #3936
* #4002
* #3588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mock-consensus Area: Relates to the mock consensus engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant