Skip to content

Commit

Permalink
Rename an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Sep 12, 2024
1 parent 74925b4 commit d60857e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/beacon-node/src/chain/archiver/archiveStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface StatesArchiverOpts {}
*/
export class StatesArchiver {
constructor(
private readonly historicalSates: IHistoricalStateRegen | undefined,
private readonly historicalStateRegen: IHistoricalStateRegen | undefined,
private readonly regen: IStateRegenerator,
private readonly db: IBeaconDb,
private readonly logger: Logger,
Expand All @@ -39,10 +39,10 @@ export class StatesArchiver {
}

if (Array.isArray(state) && state.constructor === Uint8Array) {
return this.historicalSates?.storeHistoricalState(computeStartSlotAtEpoch(finalized.epoch), state);
return this.historicalStateRegen?.storeHistoricalState(computeStartSlotAtEpoch(finalized.epoch), state);
}

return this.historicalSates?.storeHistoricalState(
return this.historicalStateRegen?.storeHistoricalState(
(state as CachedBeaconStateAllForks).slot,
(state as CachedBeaconStateAllForks).serialize()
);
Expand Down

0 comments on commit d60857e

Please sign in to comment.