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

Inconsistent paging style in Carp server #78

Open
SebastienGllmt opened this issue May 26, 2022 · 0 comments
Open

Inconsistent paging style in Carp server #78

SebastienGllmt opened this issue May 26, 2022 · 0 comments
Labels
enhancement New feature or request webserver related to the Carp webserver

Comments

@SebastienGllmt
Copy link
Contributor

There are two ways to get stable pagination:

  1. Provide a start value and an ending block. This is because if the state of the blockchain changes, the ending block hash will change so you're guaranteed the iterator is safe.
  2. Provide a start value and a start block. For the same reason, if the start value stops existing you will eventually get an error

In the current Carp server, we use (2) for the credential/addresses endpoint and we use a mix of both (1)+(2) for the transaction/history endpoint.

We should either decide on a style, or find some to offer both of them.

@SebastienGllmt SebastienGllmt added enhancement New feature or request webserver related to the Carp webserver labels May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request webserver related to the Carp webserver
Projects
None yet
Development

No branches or pull requests

1 participant