Skip to content

Commit

Permalink
Merge pull request #481 from p2p-org/mbelt3/stage
Browse files Browse the repository at this point in the history
Mbelt3/stage
  • Loading branch information
rcrvano authored Dec 6, 2024
2 parents 8d149c9 + 3988385 commit 7f408ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ environment: dev
additional_args: []
metrics:
enabled: true
image: {repository: europe-docker.pkg.dev/substrate-infra/images/mbelt3_preloader, tag: cad191c25928a41977b5002a519e9c506c4292a0}
image: {repository: europe-docker.pkg.dev/substrate-infra/images/mbelt3_preloader, tag: ca1da7fa38c7b509f62259459b5d2f3cf2937407}
replicas: 1
port: 3000
migrations:
Expand Down
6 changes: 5 additions & 1 deletion main/src/modules/PolkadotStakingProcessor/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ export class PolkadotStakingProcessorService {
trx: Knex.Transaction<any, any[]>,
): Promise<void> {
const startProcessingTime = Date.now()
this.logger.info({ event: `Process staking data for next era: ${eraId}`, metadata, eraId })
this.logger.info({ event: `Process staking data for next era: ${eraId}`, metadata, eraId, payout_block_id, collect_uid })

const payoutBlockHash = await this.polkadotHelper.getBlockHashByHeight(payout_block_id)
this.logger.info({ event: `payoutBlockHash is ${payoutBlockHash}`});
const payoutBlockTime = await this.polkadotHelper.getBlockTime(payoutBlockHash)
this.logger.info({ event: `payoutBlockTim is ${payoutBlockTime}`});

try {
const eraData = await this.polkadotHelper.getEraDataStake({ blockHash: payoutBlockHash, eraId })
this.logger.info({ event: `fetched era data`});


const { validators, nominators } = await this.polkadotHelper.getValidatorsAndNominatorsStake({
eraId: eraId,
Expand Down

0 comments on commit 7f408ce

Please sign in to comment.