Skip to content

Commit 860f0e2

Browse files
committed
Skip account keys with different publick key than the configured signer
1 parent d62d159 commit 860f0e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bootstrap/bootstrap.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ func (b *Bootstrap) StartAPIServer(ctx context.Context) error {
213213
return err
214214
}
215215
for _, key := range account.Keys {
216+
// Skip account keys that do not use the same Publick Key as the
217+
// configured crypto.Signer object.
218+
if !key.PublicKey.Equals(signer.PublicKey()) {
219+
continue
220+
}
216221
accountKeys = append(accountKeys, &requester.AccountKey{
217222
AccountKey: *key,
218223
Address: b.config.COAAddress,

0 commit comments

Comments
 (0)