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: 👷 block data is implicitly empty, can be appended #4004

Merged

Conversation

cratelyn
Copy link
Contributor

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).

@cratelyn cratelyn added the A-mock-consensus Area: Relates to the mock consensus engine label Mar 12, 2024
@cratelyn cratelyn added this to the Sprint 2 milestone Mar 12, 2024
@cratelyn cratelyn self-assigned this Mar 12, 2024
@cratelyn cratelyn marked this pull request as ready for review March 12, 2024 00:30
Base automatically changed from kate/mock-consensus-can-fast-forward to main March 12, 2024 00:35
@cratelyn cratelyn force-pushed the kate/mock-consensus-block-builder-data-is-implicitly-empty branch from 13f71f0 to 7bc540a Compare March 12, 2024 00:36
@cratelyn
Copy link
Contributor Author

force pushed and rebased off of main, now that #4002 is merged.

@cratelyn cratelyn merged commit 6e892a2 into main Mar 12, 2024
6 checks passed
@cratelyn cratelyn deleted the kate/mock-consensus-block-builder-data-is-implicitly-empty branch March 12, 2024 01:16
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
Status: Done
Development

Successfully merging this pull request may close these issues.

tests: 🧃 mock consensus block builder has empty data by default, add_tx to append tx's
1 participant