File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const (
3232 WithoutCodeLeafString = "without code leaf"
3333
3434 autoBalanceDataTriesFlag = EnableEpochFlag ("AutoBalanceDataTriesFlag" )
35- withoutCodeLeafFlag = EnableEpochFlag ("RemoveCodeLeafFlag " )
35+ migrateCodeLeafFlag = EnableEpochFlag ("MigrateCodeLeafFlag " )
3636)
3737
3838func (version TrieNodeVersion ) String () string {
@@ -69,7 +69,7 @@ func NewTrieNodeVersionVerifier(enableEpochsHandler EnableEpochsHandler) (*trieN
6969
7070// IsValidVersion returns true if the given trie node version is valid
7171func (vv * trieNodeVersionVerifier ) IsValidVersion (version TrieNodeVersion ) bool {
72- if vv .enableEpochsHandler .IsFlagEnabled (withoutCodeLeafFlag ) {
72+ if vv .enableEpochsHandler .IsFlagEnabled (migrateCodeLeafFlag ) {
7373 return version <= WithoutCodeLeaf
7474 }
7575 if vv .enableEpochsHandler .IsFlagEnabled (autoBalanceDataTriesFlag ) {
@@ -86,7 +86,7 @@ func (vv *trieNodeVersionVerifier) IsInterfaceNil() bool {
8686
8787// GetVersionForNewData returns the trie node version that should be used for new data
8888func GetVersionForNewData (handler EnableEpochsHandler ) TrieNodeVersion {
89- if handler .IsFlagEnabled (withoutCodeLeafFlag ) {
89+ if handler .IsFlagEnabled (migrateCodeLeafFlag ) {
9090 return WithoutCodeLeaf
9191 }
9292 if handler .IsFlagEnabled (autoBalanceDataTriesFlag ) {
You can’t perform that action at this time.
0 commit comments