Skip to content

Commit

Permalink
fix: update consensus public when crawl validator story
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Aug 30, 2024
1 parent e14d826 commit 1594bde
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export default class CrawlValidatorService extends BullableService {
offchainMapped.set(validator.operator_address, true);

validatorEntity = foundValidator;
validatorEntity.consensus_pubkey = validator.consensus_pubkey;
validatorEntity.jailed = validator.jailed === undefined;
validatorEntity.status = validator.status;
validatorEntity.tokens = validator.tokens;
Expand Down Expand Up @@ -164,8 +165,8 @@ export default class CrawlValidatorService extends BullableService {
fromBech32(validator.operator_address).data
);
const consensusPubkey = {
type: validator.consensus_pubkey['@type'],
key: validator.consensus_pubkey.key,
type: validator.consensus_pubkey.type,
key: validator.consensus_pubkey.value,
};

const validatorEntity = Validator.fromJson({
Expand Down

0 comments on commit 1594bde

Please sign in to comment.