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

Improve the block loading for the block view #51

Open
AlexITC opened this issue Oct 1, 2018 · 0 comments
Open

Improve the block loading for the block view #51

AlexITC opened this issue Oct 1, 2018 · 0 comments
Labels
hacktoberfest server Changes required on the server project web-ui Changes required on the web-ui project

Comments

@AlexITC
Copy link
Collaborator

AlexITC commented Oct 1, 2018

Update the block API to retrieve a block from the database and fallback to the xsnd.

Expected behavior

There are two endpoints for loading a block:

  1. GET /blocks/:query -> Loads the block data from the database.
  2. GET /blocks/:query/legacy -> Loads the block data from the xsnd.

The web-ui tries to load a block from the database, when it isn't present, it tries to load it from the xsnd, a message is displayed if it doesn't exists.

When the 1st method is used, the confirmations field should be computed on the client.

Actual behavior

The GET /blocks/:query loads a block from the block from the xsnd while we might have it on the database.

@AlexITC AlexITC added enhancement web-ui Changes required on the web-ui project server Changes required on the server project and removed enhancement labels Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest server Changes required on the server project web-ui Changes required on the web-ui project
Projects
None yet
Development

No branches or pull requests

1 participant