EspressoSystems / hotshot-query-service

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

Minor version serialization #642

Open nomaxg opened 1 month ago

nomaxg commented 1 month ago

Add a map of heights => minor versions that can be used to conditionally serialize response payloads based on the current version.

jbearer commented 3 weeks ago

Actually the query service should be able to populate this map itself. We can simply add a version column to the header table, each time we see a new leaf insert the version based on leaf.block_header().version() (add version method to QueryableHeader)