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

tests: 🍱 hoist ABCI server into penumbra-app #3794

Merged
merged 7 commits into from
Feb 9, 2024

Conversation

cratelyn
Copy link
Contributor

@cratelyn cratelyn commented Feb 9, 2024

fixes #3695.

see #3588.

this performs a series of changes to facilitate the instantiation of an ABCI service in tests. in #3789, we hoisted the Consensus and Mempool services out of the pd library and into penumbra-app. this continues that work, moving Info and Snapshot, as well as the EventIndexLayer middleware.

this allows us to move the logic in pd's entrypoint responsible for building and spawning an ABCI server to run in the background, exposing this instead from the penumbra-app library.

this represents the last piece of work in #3695, and sets the stage for a test node that contains that ABCI task and an accompanying mock consensus engine. see #3787 for an issue tracking the remaining work to initialize a test node. see #3788 for an issue tracking the work to port existing state machine tests to use a mock consensus engine.

now, the logic to instantiate an abci server lives in the penumbra-app
crate. this will be useful for our later efforts w.r.t. app testing.
as a consequence of not needing to be exported across a crate boundary,
we can see the `index_none` constructor is never used. remove it, to
address a dead code warning.

an import is formatted too here, sorry about that!
@cratelyn cratelyn added the A-mock-consensus Area: Relates to the mock consensus engine label Feb 9, 2024
@cratelyn cratelyn self-assigned this Feb 9, 2024
@cratelyn cratelyn marked this pull request as ready for review February 9, 2024 17:24
@cratelyn cratelyn changed the title tests: 🍱 spawn abci service in test node tests: 🍱 hoist ABCI server into penumbra-app Feb 9, 2024
@cratelyn cratelyn merged commit fd86535 into main Feb 9, 2024
7 checks passed
@cratelyn cratelyn deleted the katie/move-info-and-snapshot-too branch February 9, 2024 17:25
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.

pd: 🐣 move entrypoint logic into app library
1 participant