Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Syncing FluxAggregatorState more accurately #112

Open
ebarakos opened this issue Mar 26, 2021 · 0 comments
Open

Syncing FluxAggregatorState more accurately #112

ebarakos opened this issue Mar 26, 2021 · 0 comments
Labels
enhancement New feature or request flux monitor

Comments

@ebarakos
Copy link

As of current PoC FM integration with Substrate, we requesting the FA state once on FM, and then changing it directly on FM on new incoming events from BM.

We might need to have the FA state synced as close as possible to the actual blockchain state. For e.g something might go wrong in FM logic, and have it do an internal state change that doesn't reflect the true state of the blockchain. Or maybe the blockchain has some other unexpected behaviour that FM haven't taken into account, so the FA is in a different state.

A solution could be to do the syncing(querying the whole FA state anew) more frequently, on incoming blockchain events, to prevent faulty results.

(We might need to move all FA state handling to BM and have FM only to read it).

@ebarakos ebarakos added the enhancement New feature or request label Mar 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request flux monitor
Projects
None yet
Development

No branches or pull requests

2 participants