Some masternode identities are not queryable with `getIdentityByNonUniquePublicKeyHash `
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)
- Register a dash masternode
- Move collateral
- Register dash masternode again with the same owner key
- Try to find it via
getIdentityByNonUniquePublicKeyHashmethod
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: