EspressoSystems / hotshot-query-service

Generic query service for HotShot applications
https://espressosystems.github.io/hotshot-query-service/
GNU General Public License v3.0
5 stars 1 forks source link

Fix explorer summary histogram data order #594

Closed Ayiga closed 3 months ago

Ayiga commented 3 months ago

Closes #593

This PR:

The histogram data for the get_explorer_summary endpoint of the Explorer API is providing its data in the wrong order. The data is meant to be delivered in block height ascending order. Instead it's being delivered in block height descending order. This pull request changes the sort order of the data being retrieved in the query itself, which corrects the issue.

This PR does not:

Make any other significant changes to the logic.