Promotes the node status checker from sqs level to common level, so that it is used by both sqs and indexer ingesters.
Modifies the fullIndexerBlockProcessStrategy in indexer such that it delays the publishing of token supplies and pool pair data until the node sync finishes.
Adds test cases for the full_indexer_block_process_strategy::ProcessBlock function:
When the node has caught up and is no longer syncing:
Publishes the correct number of token supplies and offsets.
Publishes the correct number of pool pairs, along with the expected number of pools with creation data.
Returns an error if it fails to verify the node's syncing status.
When the node is still syncing:
Returns an error, and no data should be published.
Tested in v26.x to confirm:
Before node sync is complete, full block processor is skipped.
Full block processor is performed only after node sync is complete
Incremental processor is performed afterwards
Token supply and token supply offset data publishing is working as designed here, i.e. they should be published only after full block processor has been performed
This is an automatic backport of pull request #8762 done by Mergify.
This commit is the extension of a previous https://github.com/osmosis-labs/osmosis/pull/8744 (it was closed for avoiding some complicated merge issues and also for easier testing purposes).
This commit:
sqs
level tocommon
level, so that it is used by bothsqs
andindexer
ingesters.fullIndexerBlockProcessStrategy
in indexer such that it delays the publishing of token supplies and pool pair data until the node sync finishes.full_indexer_block_process_strategy::ProcessBlock
function:Tested in v26.x to confirm:
This is an automatic backport of pull request #8762 done by Mergify.