Skip to content

Commit

Permalink
apply similar block state fix to parent block api
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Feb 20, 2025
1 parent 6ada383 commit bf66823
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 bf66823

Please sign in to comment.