Commit 68ddf29
authored
Refactor openInitializeChainDb for Execution/Consensus split (#4169)
* Refactor openInitializeChainDb for Execution/Consensus split
Today openInitializeChainDb has procedures related to both
Execution and Consensus components. So we split them into
target functions related specifically to either Execution
and Consensus.
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* remote TODOs and fix comments
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* Add changelog
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* make lint and tests happy
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* divide responsibilities and detach chainConfig init
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* clean comment and add cacheConfig nil check
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* Improve tests and remove comments
Add checkDBDir tests
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* Refactor nitro init and config functionality
- Create new config package to expose and organize
init and config nitro functionality.
- Add new system_tests for openExistingExecutionDB
and getConsensusParsedInitMsg
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* make lint happy and move testdata files to correct location
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* Create new init package, remove tests and organize code
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* add GetInit test that skips initDataReader
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* fix ReadBoldAssertionCreationInfo behaviour and update signatures
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* fix GetConsensusParsedInitMsg BoLD test calls
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* add genesis assertion tests
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* fix BoLD tests
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* make lint happy and remove duplicate initReorg
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* Add test to cover chainconfig with TryReadStoredChainConfig
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* cleanup TestGetInitWithChainconfigInDB test
And remove error if !isBoldChain
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* make lint happy
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* Update genesis assertion tests to load with empty initData
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
* remove unecessary GenesisBlockNum overrides in tests
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
---------
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>1 parent 21f4267 commit 68ddf29
File tree
18 files changed
+2032
-1103
lines changed- changelog
- cmd/nitro
- config
- init
- testdata
- data
- system_tests
18 files changed
+2032
-1103
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Large diffs are not rendered by default.
0 commit comments