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

app: 👐 rpc::router(..) accepts a TendermintProxyService #4460

Merged
merged 1 commit into from
May 24, 2024

Conversation

cratelyn
Copy link
Contributor

💭 describe your changes

instead of accepting a url::Url and constructing specifically the "real" TendermintProxy, tweak the signature of the router function so that it accepts a T: TendermintProxyService.

in the future, this will allow mock consensus test cases to run an rpc endpoint for the view server, without running a Tendermint/CometBFT process.

🔖 issue ticket number and link

see #3913.

✅ checklist before requesting a review

  • if this code contains consensus-breaking changes, i have added the "consensus-breaking" label. otherwise, i declare my belief that there are not consensus-breaking changes, for the following reason:

    this is a like-for-like refactoring, changing a function
    signature.

 #### 💭 describe your changes

instead of accepting a `url::Url` and constructing specifically the
"real" `TendermintProxy`, tweak the signature of the router function so
that it accepts a `T: TendermintProxyService`.

in the future, this will allow mock consensus test cases to run an rpc
endpoint for the view server, without running a Tendermint/CometBFT
process.

 #### 🔖 issue ticket number and link

see #3913.

 #### ✅ checklist before requesting a review

- [x] if this code contains consensus-breaking changes, i have added the
  "consensus-breaking" label. otherwise, i declare my belief that there are not
  consensus-breaking changes, for the following reason:

    > this is a like-for-like refactoring, changing a function
    > signature.
@cratelyn cratelyn added A-node Area: System design and implementation for node software A-testing Area: Relates to testing of Penumbra A-mock-consensus Area: Relates to the mock consensus engine C-refactor Category: refactors and other related improvements labels May 24, 2024
@cratelyn cratelyn added this to the Sprint 7 milestone May 24, 2024
@cratelyn cratelyn self-assigned this May 24, 2024
@cratelyn cratelyn marked this pull request as ready for review May 24, 2024 15:12
@cratelyn cratelyn merged commit 18b72a0 into main May 24, 2024
13 checks passed
@cratelyn cratelyn deleted the kate/rpc-router-accepts-proxy-service branch May 24, 2024 15:23
cratelyn added a commit that referenced this pull request May 24, 2024
see #3913.

this is the exciting culmination of work in pr's #3996, #4349, #4435,
 #4447, #4460, and #4468.

this adds a mock consensus test that spawns a gRPC server, creates a
view server, and then plans a transaction using the `Planner`. the
effects of this are then observed using the `ViewClient`.
cratelyn added a commit that referenced this pull request May 29, 2024
see #3913.

this is the exciting culmination of work in pr's #3996, #4349, #4435,
 #4447, #4460, and #4468.

this adds a mock consensus test that spawns a gRPC server, creates a
view server, and then plans a transaction using the `Planner`. the
effects of this are then observed using the `ViewClient`.
cratelyn added a commit that referenced this pull request May 30, 2024
see #3913.

this is the exciting culmination of work in pr's #3996, #4349, #4435,
 #4447, #4460, and #4468.

this adds a mock consensus test that spawns a gRPC server, creates a
view server, and then plans a transaction using the `Planner`. the
effects of this are then observed using the `ViewClient`.
cratelyn added a commit that referenced this pull request May 31, 2024
see #3913.

this is the exciting culmination of work in pr's #3996, #4349, #4435,
 #4447, #4460, and #4468.

this adds a mock consensus test that spawns a gRPC server, creates a
view server, and then plans a transaction using the `Planner`. the
effects of this are then observed using the `ViewClient`.
cratelyn added a commit that referenced this pull request May 31, 2024
see #3913.

this is the exciting culmination of work in pr's #3996, #4349, #4435,
 #4447, #4460, and #4468.

this adds a mock consensus test that spawns a gRPC server, creates a
view server, and then plans a transaction using the `Planner`. the
effects of this are then observed using the `ViewClient`.
cratelyn added a commit that referenced this pull request Jun 3, 2024
see #3913.

this is the exciting culmination of work in pr's #3996, #4349, #4435,
 #4447, #4460, and #4468.

this adds a mock consensus test that spawns a gRPC server, creates a
view server, and then plans a transaction using the `Planner`. the
effects of this are then observed using the `ViewClient`.
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 A-node Area: System design and implementation for node software A-testing Area: Relates to testing of Penumbra C-refactor Category: refactors and other related improvements
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants