Skip to content

Commit

Permalink
Skip account keys with different publick key than the configured signer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Dec 13, 2024
1 parent 180f66f commit 9fad9b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ func (b *Bootstrap) StartAPIServer(ctx context.Context) error {
return err
}
for _, key := range account.Keys {
// Skip account keys that do not use the same Publick Key as the
// configured crypto.Signer object.
if !key.PublicKey.Equals(signer.PublicKey()) {
continue
}
accountKeys = append(accountKeys, &requester.AccountKey{
AccountKey: *key,
Address: b.config.COAAddress,
Expand Down

0 comments on commit 9fad9b9

Please sign in to comment.