-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for PoA key rotation (#2086)
Closes #1901 Closes #1919 The `ConsensusConfig` now contains one more variant, `PoAV2`, that also overrides the PoA at specific block heights. It means that starting this block the node expects blocks signed by another PoA key. Along with that, I've added additional features to automate the migration of the state so it is compatible with the new chain configuration: - During start-up, the `fuel-core` binary checks if there are any changes in the chain config. If they are, the binary re-inserts the new `Conesnsus::Genesis` type in the `SealedBlockConsensus` table. Now we can do FuelLabs/chain-configuration#1. - The `fuel-core` to react to `signing_key_overrides`. If the blocks at the corresponding overwritten block height have different signers, the `fuel-core` rollbacks to the height before overriding occurs. Side changes: - Renamed the methods of the `FuelService` to be more explicit on the logic. - Moved business logic from `FuelService::Task` to `FuelService`. ## Checklist - [x] New behavior is reflected in tests ### Before requesting review - [x] I have reviewed the code myself
- Loading branch information
Showing
29 changed files
with
957 additions
and
256 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Binary file modified
BIN
-64 Bytes
(100%)
bin/fuel-core/chainspec/local-testnet/state_transition_bytecode.wasm
Binary file not shown.
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.