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

Function checkSpecRange

packages/node/src/utils/substrate.ts:173–184  ·  view source on GitHub ↗
(
  specVersionRange: SpecVersionRange,
  specVersion: number,
)

Source from the content-addressed store, hash-verified

171}
172
173function checkSpecRange(
174 specVersionRange: SpecVersionRange,
175 specVersion: number,
176) {
177 const [lowerBond, upperBond] = specVersionRange;
178 return (
179 (lowerBond === undefined ||
180 lowerBond === null ||
181 specVersion >= lowerBond) &&
182 (upperBond === undefined || upperBond === null || specVersion <= upperBond)
183 );
184}
185
186export function filterBlock(
187 block: SubstrateBlock,

Callers 3

filterBlockFunction · 0.85
filterExtrinsicFunction · 0.85
filterEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected