mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 16:37:39 +00:00
Invert state field trie (#6013)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
9e8eafda6a
commit
e3180cf977
@ -189,9 +189,10 @@ func ConfigureBeaconChain(ctx *cli.Context) {
|
|||||||
log.Warn("Enabling state management service")
|
log.Warn("Enabling state management service")
|
||||||
cfg.NewStateMgmt = true
|
cfg.NewStateMgmt = true
|
||||||
}
|
}
|
||||||
if ctx.Bool(enableFieldTrie.Name) {
|
cfg.EnableFieldTrie = true
|
||||||
log.Warn("Enabling state field trie")
|
if ctx.Bool(disableFieldTrie.Name) {
|
||||||
cfg.EnableFieldTrie = true
|
log.Warn("Disabling state field trie")
|
||||||
|
cfg.EnableFieldTrie = false
|
||||||
}
|
}
|
||||||
if ctx.Bool(disableInitSyncBatchSaveBlocks.Name) {
|
if ctx.Bool(disableInitSyncBatchSaveBlocks.Name) {
|
||||||
log.Warn("Disabling init sync batch save blocks mode")
|
log.Warn("Disabling init sync batch save blocks mode")
|
||||||
|
@ -124,10 +124,11 @@ var (
|
|||||||
Name: "enable-new-state-mgmt",
|
Name: "enable-new-state-mgmt",
|
||||||
Usage: "This enable the usage of state mgmt service across Prysm",
|
Usage: "This enable the usage of state mgmt service across Prysm",
|
||||||
}
|
}
|
||||||
enableFieldTrie = &cli.BoolFlag{
|
disableFieldTrie = &cli.BoolFlag{
|
||||||
Name: "enable-state-field-trie",
|
Name: "disable-state-field-trie",
|
||||||
Usage: "Enables the usage of state field tries to compute the state root",
|
Usage: "Disables the usage of state field tries to compute the state root",
|
||||||
}
|
}
|
||||||
|
|
||||||
disableInitSyncBatchSaveBlocks = &cli.BoolFlag{
|
disableInitSyncBatchSaveBlocks = &cli.BoolFlag{
|
||||||
Name: "disable-init-sync-batch-save-blocks",
|
Name: "disable-init-sync-batch-save-blocks",
|
||||||
Usage: "Instead of saving batch blocks to the DB during initial syncing, this disables batch saving of blocks",
|
Usage: "Instead of saving batch blocks to the DB during initial syncing, this disables batch saving of blocks",
|
||||||
@ -160,7 +161,6 @@ var (
|
|||||||
|
|
||||||
// devModeFlags holds list of flags that are set when development mode is on.
|
// devModeFlags holds list of flags that are set when development mode is on.
|
||||||
var devModeFlags = []cli.Flag{
|
var devModeFlags = []cli.Flag{
|
||||||
enableFieldTrie,
|
|
||||||
enableNewStateMgmt,
|
enableNewStateMgmt,
|
||||||
enableInitSyncWeightedRoundRobin,
|
enableInitSyncWeightedRoundRobin,
|
||||||
}
|
}
|
||||||
@ -375,6 +375,10 @@ var (
|
|||||||
Usage: deprecatedUsage,
|
Usage: deprecatedUsage,
|
||||||
Hidden: true,
|
Hidden: true,
|
||||||
}
|
}
|
||||||
|
deprecateEnableFieldTrie = &cli.BoolFlag{
|
||||||
|
Name: "enable-state-field-trie",
|
||||||
|
Usage: deprecatedUsage,
|
||||||
|
Hidden: true}
|
||||||
)
|
)
|
||||||
|
|
||||||
var deprecatedFlags = []cli.Flag{
|
var deprecatedFlags = []cli.Flag{
|
||||||
@ -419,6 +423,7 @@ var deprecatedFlags = []cli.Flag{
|
|||||||
deprecatedBroadcastSlashingFlag,
|
deprecatedBroadcastSlashingFlag,
|
||||||
deprecatedDisableHistoricalDetectionFlag,
|
deprecatedDisableHistoricalDetectionFlag,
|
||||||
deprecateEnableStateRefCopy,
|
deprecateEnableStateRefCopy,
|
||||||
|
deprecateEnableFieldTrie,
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatorFlags contains a list of all the feature flags that apply to the validator client.
|
// ValidatorFlags contains a list of all the feature flags that apply to the validator client.
|
||||||
@ -470,11 +475,11 @@ var BeaconChainFlags = append(deprecatedFlags, []cli.Flag{
|
|||||||
dontPruneStateStartUp,
|
dontPruneStateStartUp,
|
||||||
disableBroadcastSlashingFlag,
|
disableBroadcastSlashingFlag,
|
||||||
enableNewStateMgmt,
|
enableNewStateMgmt,
|
||||||
enableFieldTrie,
|
|
||||||
disableInitSyncBatchSaveBlocks,
|
disableInitSyncBatchSaveBlocks,
|
||||||
waitForSyncedFlag,
|
waitForSyncedFlag,
|
||||||
skipRegenHistoricalStates,
|
skipRegenHistoricalStates,
|
||||||
enableInitSyncWeightedRoundRobin,
|
enableInitSyncWeightedRoundRobin,
|
||||||
|
disableFieldTrie,
|
||||||
disableStateRefCopy,
|
disableStateRefCopy,
|
||||||
}...)
|
}...)
|
||||||
|
|
||||||
@ -483,7 +488,6 @@ var E2EBeaconChainFlags = []string{
|
|||||||
"--cache-filtered-block-tree",
|
"--cache-filtered-block-tree",
|
||||||
"--enable-state-gen-sig-verify",
|
"--enable-state-gen-sig-verify",
|
||||||
"--check-head-state",
|
"--check-head-state",
|
||||||
"--enable-state-field-trie",
|
|
||||||
"--enable-new-state-mgmt",
|
"--enable-new-state-mgmt",
|
||||||
"--enable-init-sync-wrr",
|
"--enable-init-sync-wrr",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user