Skip to content

Commit

Permalink
loadgenerator: correctly handle AccountMnemonicList
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Aug 23, 2022
1 parent 924d2fb commit 930bd07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/loadgenerator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ func main() {
var publicKeys []basics.Address
addKey := func(mnemonic string) {
seed := loadMnemonic(mnemonic)
privateKeys = append(privateKeys, crypto.GenerateSignatureSecrets(seed))
publicKeys = append(publicKeys, basics.Address(privateKeys[0].SignatureVerifier))
secrets := crypto.GenerateSignatureSecrets(seed)
privateKeys = append(privateKeys, secrets)
publicKeys = append(publicKeys, basics.Address(secrets.SignatureVerifier))
}
if cfg.AccountMnemonic != "" { // one mnemonic provided
addKey(cfg.AccountMnemonic)
Expand Down

0 comments on commit 930bd07

Please sign in to comment.