Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eon key publishing error #460

Open
jannikluhn opened this issue Jun 27, 2024 · 0 comments
Open

Eon key publishing error #460

jannikluhn opened this issue Jun 27, 2024 · 0 comments
Assignees

Comments

@jannikluhn
Copy link
Contributor

Keypers fail to publish eon keys with the following error:

failed to check if eon key should be published error="no rows in result set" key=8a5d479286d9b0acec04c257ea670325f53214d9d8e940682b3dc94c5b4a1f5f0bc5bec62b52a345bf7088c6bb92df4008f46b86d72cd2baeb8548cf2ae56a610f7e1a42ceb2f868eeff75a9c2a0df1762d8085f57446532e398820b1e4a658e keyper-set-index=1

This is likely because of this line:

keyperSet, err := db.GetKeyperSetByKeyperConfigIndex(ctx, int64(key.Eon))

We use the key's keyper internal eon index instead of the keyper set index to get the corresponding keyper set from the db. If eon and keyper set index don't match, they get the wrong or in practice more likely no keyper set at all.

To fix this, we should query by keyper set index which is also part of the EonPublicKey event.

@jannikluhn jannikluhn self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant