Skip to content

Commit

Permalink
restart balances url
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrvano committed Dec 4, 2023
1 parent 737fa42 commit 4ac9f3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .helm/templates/streamer.deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ spec:
{{- with .Values.env }}
env:

- { name: RESTART_BLOCKS_URI, value: {{ quote .restart_blocks_uri }} }
- { name: RESTART_ERAS_URI, value: {{ quote .restart_eras_uri }} }
- { name: RESTART_ROUNDS_URI, value: {{ quote .restart_rounds_uri }} }
- { name: RESTART_BLOCKS_URI, value: {{ quote .restart_blocks_uri }} }
- { name: RESTART_ERAS_URI, value: {{ quote .restart_eras_uri }} }
- { name: RESTART_ROUNDS_URI, value: {{ quote .restart_rounds_uri }} }
- { name: RESTART_BALANCES_URI, value: {{ quote .restart_balances_uri }} }
- { name: SUBSTRATE_URI, value: {{ quote .substrate_uri }} }
- { name: LOG_LEVEL, value: {{ quote .log_level }} }
- { name: NETWORK_ID, value: {{ quote .network_id }} }
Expand Down
17 changes: 11 additions & 6 deletions main/src/modules/MoonbeamStakingProcessor/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import { SliMetrics } from '@/loaders/sli_metrics'
import { Init } from '@polkadot/api/base/Init'
import { ENTITY, ProcessingTaskModel, PROCESSING_STATUS } from '@/models/processing_task.model'

/**
* Please check this repo
* https://github.com/PureStake/moonbeam.git
*
* and test scripts like:
* test/suites/smoke/test-staking-round-cleanup.ts
*/
@Service()
export class MoonbeamStakingProcessorService {
constructor(
Expand Down Expand Up @@ -125,9 +132,8 @@ export class MoonbeamStakingProcessorService {
}

logger.info({
event: `Round ${round.id.toString(10)} staking processing finished in ${
(Date.now() - startProcessingTime) / 1000
} seconds.`,
event: `Round ${round.id.toString(10)} staking processing finished in ${(Date.now() - startProcessingTime) / 1000
} seconds.`,
})

await this.sliMetrics.add({
Expand Down Expand Up @@ -273,9 +279,8 @@ export class MoonbeamStakingProcessorService {
}

logger.info({
event: `Round ${round.id.toString(10)} staking processing finished in ${
(Date.now() - startProcessingTime) / 1000
} seconds.`,
event: `Round ${round.id.toString(10)} staking processing finished in ${(Date.now() - startProcessingTime) / 1000
} seconds.`,
})

await this.sliMetrics.add({
Expand Down

0 comments on commit 4ac9f3c

Please sign in to comment.