From 9fad9b9be72a8218022325098613db1e7bfcc902 Mon Sep 17 00:00:00 2001 From: Ardit Marku Date: Fri, 13 Dec 2024 16:31:05 +0200 Subject: [PATCH] Skip account keys with different publick key than the configured signer --- bootstrap/bootstrap.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index 1d3738cc..e33caf51 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -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,