Skip to content

Commit

Permalink
rename issueNext.. to maybeIssueNext...
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed May 22, 2022
1 parent f4abbf8 commit 5752b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lodestar/src/chain/blocks/importBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export async function importBlock(chain: ImportBlockModules, fullyVerifiedBlock:
}
}

void issueNextProposerEngineFcU(chain, postState).then((payloadId) => {
void maybeIssueNextProposerEngineFcU(chain, postState).then((payloadId) => {
// NOTE: forkChoice.fsStore.finalizedCheckpoint MUST only change is response to an onBlock event
// Notify execution layer of head and finalized updates only if has already
// not been done via payloadId generation. But even if this fcU follows the
Expand Down Expand Up @@ -263,7 +263,7 @@ export async function importBlock(chain: ImportBlockModules, fullyVerifiedBlock:
pendingEvents.emit();
}

export async function issueNextProposerEngineFcU(
async function maybeIssueNextProposerEngineFcU(
chain: ImportBlockModules,
state: CachedBeaconStateAllForks
): Promise<PayloadId | null> {
Expand Down

0 comments on commit 5752b9f

Please sign in to comment.