Skip to content

Commit

Permalink
Merge pull request #1229 from autonomys/fix/bug-with-operators-state-…
Browse files Browse the repository at this point in the history
…problematic-block

Apply similar block state fix to parent block api
  • Loading branch information
marc-aurele-besner authored Feb 20, 2025
2 parents 63e6fee + 44b0579 commit 595d50f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion indexers/staking/src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export async function handleBlock(_block: SubstrateBlock): Promise<void> {
: api;

// Use to query the parent block operators (for the last unlock of an operator (unlockNominator))
const parentBlockApi = unsafeApi ? await unsafeApi.at(parentHash) : api;
const parentBlockApi = unsafeApi
? height > 824013 && height <= 835748
? apiPatched
: await unsafeApi.at(parentHash)
: api;

const [
domainStakingSummary,
Expand Down

0 comments on commit 595d50f

Please sign in to comment.