Skip to content

Commit 80d005f

Browse files
authored
Merge pull request #705 from onflow/mpeter/fix-key-store-assignment
Skip account keys with different publick key than the configured signer
2 parents d3c9db5 + 9fad9b9 commit 80d005f

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)