osmosis-labs / sqs

Sidecar Query Server
10 stars 10 forks source link

[Q3] Auto-update asset list at regular intervals #279

Open p0mvn opened 1 month ago

p0mvn commented 1 month ago

Currently, we need to redeploy SQS nodes to get SQS updates.

DoD

p0mvn commented 1 month ago

More context:

Let's have a config to enable this feature so that we can turn it on if something is breaking.

I suggest having a config value under grpc-ingester named asset-list-update-height-interval.

If the value is non-zero, it would represent the frequency at which we refetch the asset list in terms of heights. For example, if interval is 1, means every height. If 5, every 5 height - 0, 5, 10 and so on.

It should be as simple as adding a call to a separate goroutine to refetch and update the asset list somewhere here based on config.

deividaspetraitis commented 1 month ago

Hey @p0mvn I am happy to pick this up. Thanks for providing some context and guidance!