Skip to content

Commit

Permalink
ignore validation calls for now but error on invalidation calls
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Nov 14, 2021
1 parent 885285a commit 871002d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/fork-choice/src/forkChoice/forkChoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,9 @@ export class ForkChoice implements IForkChoice {
* 1. verify is_merge_block if the mergeblock has not yet been validated
* 2. Throw critical error and exit if a block in finalized chain gets invalidated
*/
validateLatestHash(_latestValidHash: RootHex, _invalidBranchDecendantHash: RootHex | null): void {
throw Error("NOT_IMPLEMENTED");
validateLatestHash(_latestValidHash: RootHex, invalidBranchDecendantHash: RootHex | null): void {
if (invalidBranchDecendantHash) throw Error("NOT_IMPLEMENTED");
// Silently ignore for now if all calls were valid
}

private updateJustified(justifiedCheckpoint: CheckpointWithHex, justifiedBalances: number[]): void {
Expand Down

0 comments on commit 871002d

Please sign in to comment.