Offer multiple rpc servers to direct calls to different apps #69
Labels
enhancement
New feature or request
good first issue
Good for newcomers
prio:mighthave
For low priority issues that might be nice to have, but are not particularly important.
Is your feature request related to a problem? Please describe.
When e.g. calling the status endpoint https://docs.cometbft.com/v0.34/rpc/#/Info/status,
currently CometMock just uses the first validator and prints information for it.
This means it is hard to actually get information for other validators.
Describe the solution you'd like
CometMock should offer a way to direct calls to other apps/make them look like they hit a specific validator.
One solution for this could be to offer several addresses that cometmock listens on as an rpc server.
Which address a call gets directed to determines which validator it corresponds to.
The addresses could be specified during startup.
Additional context
This issue is currently low priority, since there are workarounds for the use cases so far - e.g. for getting the node-id, the cosmos-sdk offers functionality to get it without having to go through the cometbft rpc server with
If the workarounds become too cumbersome for future issues, this should potentially be addressed.
The text was updated successfully, but these errors were encountered: