Skip to content

Commit

Permalink
Expose clock.genesisTime
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Jul 27, 2021
1 parent 5a7da20 commit bd79eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/light-client/src/utils/clock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type OnSlotFn = (slot: Slot, signal: AbortSignal) => Promise<void>;

export interface IClock {
readonly currentSlot: Slot;
readonly genesisTime: number;
start(signal: AbortSignal): void;
runEverySlot(fn: OnSlotFn): void;
}
Expand All @@ -17,7 +18,7 @@ export class Clock implements IClock {

constructor(
private readonly config: IChainForkConfig,
private readonly genesisTime: number,
readonly genesisTime: number,
private readonly onError?: (e: Error) => void
) {}

Expand Down

0 comments on commit bd79eba

Please sign in to comment.