Skip to content

Commit

Permalink
Merge pull request #252 from pshenmic/fix/identities-base64
Browse files Browse the repository at this point in the history
Revert base64 check for masternode identities
  • Loading branch information
pshenmic authored Sep 4, 2024
2 parents 3a9ff29 + e981688 commit ccd5873
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/indexer/src/processor/psql/dao/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ impl PostgresDAO {
}

pub async fn create_identity(&self, identity: Identity, st_hash: Option<String>) -> Result<(), PoolError> {
let identifier: String = match st_hash {
None => identity.identifier.to_string(Base64),
Some(_) => identity.identifier.to_string(Base58)
};

let identifier = identity.identifier;
let revision = identity.revision;
let revision_i32 = revision as i32;
let owner = identity.owner;
Expand All @@ -171,7 +167,7 @@ impl PostgresDAO {
let stmt = client.prepare_cached(query).await.unwrap();

client.query(&stmt, &[
&identifier,
&identifier.to_string(Base58),
&owner.to_string(Base58),
&revision_i32,
&st_hash,
Expand Down

0 comments on commit ccd5873

Please sign in to comment.