Skip to content

Some masternode identities are not queryable with getIdentityByNonUniquePublicKeyHash  #2752

@pshenmic

Description

@pshenmic

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions