platform icon indicating copy to clipboard operation
platform copied to clipboard

Some masternode identities are not queryable with `getIdentityByNonUniquePublicKeyHash `

Open pshenmic opened this issue 4 months ago • 0 comments

Expected Behavior

DAPI GRPC method getIdentityByNonUniquePublicKeyHash for all identities, including masternode identities, without any error.

Current Behavior

Method getIdentityByNonUniquePublicKeyHash does flawlessly work for the most of the masternodes, and if you want to fetch and Identity, having only a private key, this query very handy.

However, recently we found that some specific masternode identities are not being found by this query, however they are truly exists. After a lot of digging, we investigated, that this happens for masternodes, which owner keys were reused, for example after process of migration of the collateral (new node gets registered with the same addresses).

Such masterodes are unable to query

Possible Solution

Steps to Reproduce (for bugs)

  1. Register a dash masternode
  2. Move collateral
  3. Register dash masternode again with the same owner key
  4. Try to find it via getIdentityByNonUniquePublicKeyHash method

Context

I'm trying to make a withdrawal transaction with only a private key (owner/payout)

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 avatar Aug 29 '25 11:08 pshenmic