fix: update CONSENSUS_RPC_URL
This commit is contained in:
parent
c3d7a829a1
commit
281869db4d
|
@ -8,7 +8,7 @@ import axios from "axios";
|
|||
|
||||
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 {
|
||||
method: string;
|
||||
|
@ -61,10 +61,6 @@ const plugin: Plugin = {
|
|||
api.registerMethod("consensus_optimistic_update", {
|
||||
cacheable: false,
|
||||
async handler(): Promise<Uint8Array> {
|
||||
if (!client.isSynced) {
|
||||
await client.sync();
|
||||
}
|
||||
|
||||
let execInfo = await client.getLatestExecution();
|
||||
|
||||
if (!execInfo) {
|
||||
|
|
Loading…
Reference in New Issue