Skip to content

Commit

Permalink
Merge pull request #267 from nkryuchkov/fix/old-keys-panic
Browse files Browse the repository at this point in the history
Fix panic on migration of old key pair
  • Loading branch information
jdknives authored Mar 27, 2020
2 parents 4f4e4fb + 4b38d32 commit 6dfb639
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/skywire-cli/commands/visor/gen-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ func fillInOldKeys(confPath string, conf *visor.Config) error {
return fmt.Errorf("invalid old configuration file: %w", err)
}

conf.KeyPair.PubKey = oldConf.KeyPair.PubKey
conf.KeyPair.SecKey = oldConf.KeyPair.SecKey
conf.KeyPair = oldConf.KeyPair

return nil
}
Expand Down

0 comments on commit 6dfb639

Please sign in to comment.