You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a followup to #10 we should refactor the set fee asset rates code paths so that
The loading from file and loading from RPC share the same underlying function.
That function validates the entire data structure before it is used to atomically modify the global exchangeRateMap, so that the variable is not left in unusable state if something goes wrong.
Maybe for persistence, in the RPC variant, after the data is validated and before or after the global variable is updated, save the json to a temporary file, fdatasync, then atomically replace the startup file.
The text was updated successfully, but these errors were encountered:
As a followup to #10 we should refactor the set fee asset rates code paths so that
The text was updated successfully, but these errors were encountered: