Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add API call to get first_block_available #10008

Open
matthewdarwin opened this issue Feb 4, 2021 · 2 comments
Open

Add API call to get first_block_available #10008

matthewdarwin opened this issue Feb 4, 2021 · 2 comments

Comments

@matthewdarwin
Copy link

matthewdarwin commented Feb 4, 2021

/v1/chain/get_info tells you want is the last block available, but not the first block. Since nodeos can start from a snaphot and with 2.1 auto-remove old blocks, it would be nice to have a way to know which blocks are actually available.

Information could be added to the existing get_info API call.

@aclark-b1
Copy link

Hi @matthewdarwin - is there more context you can share about your use case? We want to make sure we're approaching this correctly.

@matthewdarwin
Copy link
Author

Use case #1: The use case is that I was trying to sync blocks from a node for which the blocks were expired. So would like to create some sort of internal dashboard so I know how many blocks are available on which nodes. This requirement could also be fulfilled other ways.

Use case #2: From a public API endpoint point of view (eg validate.eosnation.io) it would be nice to know which is the first block available. Currently need to run multiple get_block queries to figure out which is the first block available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants