Skip to content

Commit

Permalink
temporary patch;
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbundler committed Nov 13, 2023
1 parent 8a096dc commit 72a619e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,8 @@ var (
StateExpiryBaseFlags = []cli.Flag{
StateExpiryEnableFlag,
StateExpiryEnableRemoteModeFlag,
// TODO(0xbundler): temporary set
StateExpiryPruneLevelFlag,
}
)

Expand Down
7 changes: 4 additions & 3 deletions core/types/state_expiry.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ func (s *StateExpiryConfig) CheckCompatible(newCfg *StateExpiryConfig) error {
return errors.New("StateScheme is incompatible")
}

if s.PruneLevel != newCfg.PruneLevel {
return errors.New("state expiry PruneLevel is incompatible")
}
// TODO(0xbundler): temporary remove check for testing
//if s.PruneLevel != newCfg.PruneLevel {
// return errors.New("state expiry PruneLevel is incompatible")
//}

return nil
}
Expand Down

0 comments on commit 72a619e

Please sign in to comment.