Improve the block loading for the block view #51
Labels
hacktoberfest
server
Changes required on the server project
web-ui
Changes required on the web-ui project
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:
GET /blocks/:query
-> Loads the block data from the database.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 thexsnd
while we might have it on the database.The text was updated successfully, but these errors were encountered: