Skip to content

Commit

Permalink
fix: cfg node chain init (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
filo87 authored Nov 19, 2024
1 parent 69d9c3c commit 2de44dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappings/handlers/blockHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { SnapshotPeriodService } from '../services/snapshotPeriodService'
import { TrancheBalanceService } from '../services/trancheBalanceService'
import { InvestorPositionService } from '../services/investorPositionService'
import { CurrencyService } from '../services/currencyService'
import { BlockchainService } from '../services/blockchainService'
import { BlockchainService, LOCAL_CHAIN_ID } from '../services/blockchainService'

const timekeeper = TimekeeperService.init()

Expand All @@ -33,7 +33,7 @@ async function _handleBlock(block: SubstrateBlock): Promise<void> {
logger.info(
`# It's a new period on block ${blockNumber}: ${block.timestamp.toISOString()} (specVersion: ${specVersion})`
)
const _blockchain = BlockchainService.getOrInit(chainId)
const _blockchain = BlockchainService.getOrInit(LOCAL_CHAIN_ID)
const period = SnapshotPeriodService.init(blockPeriodStart)
await period.save()

Expand Down

0 comments on commit 2de44dc

Please sign in to comment.