Skip to content

Commit

Permalink
Reorder statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jul 29, 2024
1 parent 038e980 commit f273632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/execution/engine/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ export class ExecutionEngineHttp implements IExecutionEngine {

this.rpc.emitter.on(JsonRpcHttpClientEvent.RESPONSE, () => {
if (this.clientVersion === undefined) {
this.clientVersion = null;
// This statement should only be called first time receiving response after startup
this.getClientVersion(getLodestarClientVersion(this.opts)).catch((e) => {
this.logger.debug("Unable to get execution client version", {}, e);
});
this.clientVersion = null;
}
this.updateEngineState(getExecutionEngineState({targetState: ExecutionEngineState.ONLINE, oldState: this.state}));
});
Expand Down

0 comments on commit f273632

Please sign in to comment.