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 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) {
|
||||||
|
|
Loading…
Reference in New Issue