-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* don't pass genesisBytes as arg on SetNode, NewVochain, newTendermint, etc * notably, now cometbft has it's own datadir separate from our state, allowing to wipe cometbft data without wiping our state. * drop genesis.AutoUpdateGenesis in favor of a new flag AutoWipeDataDir * add AutoWipeCometBFT flag * move SeedNodes from genesis into config package (DefaultSeedNodes) * add config consts: DefaultCometBFTPath and DefaultGenesisPath * testsuite: use genesis.go instead of hardcoded genesis.json this increases the code coverage of testsuite and helps developing refactors of genesis.go * now testsuite network is `test` (instead of `dev`) * app.genesisDoc is now populated during newTendermint, instead of pulling from app.NodeClient.Genesis, since it's needed during Info() handshake * cometbft: removed redundant app.State.SetHeight(lastHeight) during Info() * cometbft: now Info() supports doing a chain bump, if genesis InitialHeight > lastHeight * genesis: remove copypasted types, use upstream comettypes directly * genesis: deduplicate ConsensusParams literals using DefaultBlockParams, etc * genesis: remove useless hardcoded StateSyncParams
- Loading branch information
Showing
21 changed files
with
405 additions
and
543 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,29 @@ package config | |
// These consts are defaults used in VochainCfg | ||
const ( | ||
DefaultMinerTargetBlockTimeSeconds = 10 | ||
DefaultCometBFTPath = "cometbft" | ||
DefaultGenesisPath = DefaultCometBFTPath + "/config/genesis.json" | ||
) | ||
|
||
// DefaultSeedNodes is a map indexed by network name | ||
var DefaultSeedNodes = map[string][]string{ | ||
// testsuite test network | ||
"test": { | ||
"3c3765494e758ae7baccb1f5b0661755302ddc47@seed:26656", | ||
}, | ||
// Development network | ||
"dev": { | ||
"[email protected]:26656", | ||
}, | ||
|
||
// Staging network | ||
"stage": { | ||
"[email protected]:26656", | ||
}, | ||
|
||
// LTS production network | ||
"lts": { | ||
"[email protected]:26656", | ||
"[email protected]:26656", | ||
}, | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.