Skip to content

Commit

Permalink
chore: test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wnjoon committed Jan 14, 2025
1 parent dacbf29 commit ffd11f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e/containers/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,19 @@ func (m *Manager) RunNodeResource(chainId string, containerName, valCondifDir st
log.Print("=> blsKeyFile: ", blsKeyFile)
log.Print("=> blsPasswordFile: ", blsPasswordFile)

// Remove existing files if they exist
for _, file := range []string{cmtKeyFile, cmtStateFile, blsKeyFile, blsPasswordFile} {
if err := os.RemoveAll(file); err != nil {
log.Printf("Failed to remove file %s: %v", file, err)
return nil, err
}
}

if err := privval.IsValidFilePath(cmtKeyFile, cmtStateFile, blsKeyFile, blsPasswordFile); err != nil {
return nil, err
}

// Generate new keys
filePV := cmtprivval.GenFilePV(cmtKeyFile, cmtStateFile)
filePV.Key.Save()
filePV.LastSignState.Save()
Expand Down

0 comments on commit ffd11f3

Please sign in to comment.