Bisonai / orakl

Official Oracle of Kaia Blockchain
https://orakl.network
MIT License
71 stars 15 forks source link

check if value has changed in local aggregates before updating #1729

Closed Intizar-T closed 4 weeks ago

Intizar-T commented 3 months ago

Current implementation sends local aggregate to db at a given interval. Update that logic to check if the computed local aggregate is different than the previous one. If not changed then don't make a db transaction. However, there should be an interval after which local aggregates should be written to db even if the value doesn't change.

https://github.com/Bisonai/orakl/blob/a95bf34cfc83a776338cf12aba10095322066612/node/pkg/fetcher/collector.go#L126

nick-bisonai commented 4 weeks ago

will be closed since it is not planned to be implemented. will reopen if required