fix: update CONSENSUS_RPC_URL

This commit is contained in:
Derrick Hammer 2023-10-19 17:40:32 -04:00
parent c3d7a829a1
commit 281869db4d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import axios from "axios";
const EXECUTION_RPC_URL = "https://rpc.ankr.com/eth"; const EXECUTION_RPC_URL = "https://rpc.ankr.com/eth";
const CONSENSUS_RPC_URL = "https://lodestar-mainnet.chainsafe.io"; const CONSENSUS_RPC_URL = "http://nimbus-mainnet.commonprefix.com";
interface ExecutionRequest { interface ExecutionRequest {
method: string; method: string;
@ -61,10 +61,6 @@ const plugin: Plugin = {
api.registerMethod("consensus_optimistic_update", { api.registerMethod("consensus_optimistic_update", {
cacheable: false, cacheable: false,
async handler(): Promise<Uint8Array> { async handler(): Promise<Uint8Array> {
if (!client.isSynced) {
await client.sync();
}
let execInfo = await client.getLatestExecution(); let execInfo = await client.getLatestExecution();
if (!execInfo) { if (!execInfo) {