forked from FuelLabs/fuel-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch
ConsensusParameters
from the database (FuelLabs#1809)
Related issue FuelLabs#1753 The change fetches the `ConsensusParameters` from the database and caches it inside of the `ConsensusParametersProvider`. The `ConsensusParametersProvider` has a service that runs in the background and listens for a new block from the block importer. If a new block uses a new consensus parameters version, the `ConsensusParametersProvider` will update the internal `latest_consensus_parameters_version` variable and cache a new `ConsensusParameters`. ### Before requesting review - [x] I have reviewed the code myself
- Loading branch information
Showing
14 changed files
with
404 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.