Skip to content

Commit

Permalink
Back port state migration bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kay-Zee committed Sep 22, 2021
1 parent a2752f4 commit 360f818
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/util/cmd/execution-state-extract/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func run(*cobra.Command, []string) {
if err != nil {
log.Fatal().Err(err).Msg("invalid state commitment length")
}
} else if !flagNoMigration {
}

if len(flagBlockHash) == 0 && len(flagStateCommitment) == 0 {
// read state commitment from root checkpoint

f, err := os.Open(path.Join(flagExecutionStateDir, bootstrap.FilenameWALRootCheckpoint))
Expand Down

0 comments on commit 360f818

Please sign in to comment.