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

DAPI getIdentityByPublicKeyHash is not working for masternode identities #2244

Open
pshenmic opened this issue Oct 16, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@pshenmic
Copy link
Collaborator

Expected Behavior

DAPI GRPC query for searching an identity by specific public key hash should work for all identities in the state.

Current Behavior

Masternode identity could not be found through getIdentityByPublicKeyHash RPC, query always returns Not Found error.
Regular identities can be found just fine.

The query should work transparently to the user independently which type of identity he tries to retrieve

Possible Solution

Steps to Reproduce (for bugs)

  1. Get identity via masternode identity's identifier
  2. Get first public key from the set
  3. Try to search the given identity by that specific public key
  4. Query throws Not Found error

Context

Due recent changes in the code, masternode identities now behave differently from the regular ones, and that breaks getIdentityPublicKeyHash GRPC query.

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:
@pshenmic pshenmic added the bug Something isn't working label Oct 16, 2024
@shumkov
Copy link
Member

shumkov commented Oct 17, 2024

I believe it's by design rather than a bug. The getIdentityByPublicKeyHash endpoint works only for unique keys, but masternode keys aren't unique. Please @QuantumExplorer confirm. @thephez shall we document it somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

4 participants