Skip to content

Conversation

@owl352
Copy link
Collaborator

@owl352 owl352 commented Sep 13, 2025

Issue

At this moment indexer doesn't support identities, which used for voting

Things done

  • Implemented alghoritm, which allows to convert protxhash to voter_id
  • Removed unused methods
  • Added identity type (Regular, Masternode, Voting)
  • Decrease indexer time interval between new blocks
  • All hashes now stores in lowercase
  • Updated fixtures
  • Added voting_public_key_hash for validators table

@owl352 owl352 self-assigned this Sep 13, 2025
@owl352 owl352 added the backend Related to backend (API) label Sep 13, 2025
@vercel
Copy link

vercel bot commented Sep 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
platform-explorer Ready Ready Preview Comment Oct 10, 2025 1:47pm

# Conflicts:
#	packages/indexer/src/processor/psql/dao/identities.rs
}

if (!type) {
type = 'Regular'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use enum, and why is it CamelCase

let identifier: String = row.get(2);
let revision: i32 = row.get(3);
let is_system: bool = row.get(4);
let sql_identity_type: String = row.get(5);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it sql_identity_type?

pub revision: Revision,
pub balance: Option<u64>,
pub is_system: bool,
pub identity_type: IdentifierType,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing masternode and voting address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Related to backend (API)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants