MCPcopy Create free account
hub / github.com/subquery/subql / onProjectChange

Method onProjectChange

packages/node/src/blockchain.service.ts:110–114  ·  view source on GitHub ↗
(project: SubqueryProject)

Source from the content-addressed store, hash-verified

108 }
109
110 async onProjectChange(project: SubqueryProject): Promise<void> {
111 // Only network with chainTypes require to reload
112 await this.apiService.updateChainTypes();
113 this.apiService.updateBlockFetching();
114 }
115
116 async getBlockTimestamp(height: number): Promise<Date> {
117 const block = await getBlockByHeight(this.apiService.api, height);

Callers

nothing calls this directly

Calls 2

updateBlockFetchingMethod · 0.80
updateChainTypesMethod · 0.65

Tested by

no test coverage detected