style: fix typos

This commit is contained in:
Derrick Hammer 2023-07-13 03:12:49 -04:00
parent c3b47e67e7
commit a7786fa21c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import {
} from "#util.js";
import { LightClientUpdate, OptimisticUpdateCallback } from "#types.js";
import { assertValidLightClientUpdate } from "@lodestar/light-client/validation";
import * as capella from "@lodestar/types/capella";
export interface BaseClientOptions {
prover: IProver;
@ -39,6 +40,12 @@ export default abstract class BaseClient {
this.options = options;
}
private _latestOptimisticUpdate?: Uint8Array;
get latestOptimisticUpdate(): Uint8Array {
return this._latestOptimisticUpdate as Uint8Array;
}
private _latestPeriod: number = -1;
get latestPeriod(): number {
@ -117,7 +124,7 @@ export default abstract class BaseClient {
this.latestCommittee as Uint8Array[],
update,
);
// TODO: check the update agains the latest sync commttee
// TODO: check the update against the latest sync committee
if (!verify.correct) {
console.error(`Invalid Optimistic Update: ${verify.reason}`);
return null;