Compare commits
4 Commits
059c0b64ee
...
4bad47c54c
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 4bad47c54c | |
Derrick Hammer | 0292c8c629 | |
Derrick Hammer | 281869db4d | |
Derrick Hammer | c3d7a829a1 |
|
@ -10,7 +10,7 @@
|
|||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@lumeweb/interface-relay": "^0.0.2-develop.1",
|
||||
"@lumeweb/libethsync": "^0.1.0-develop.49",
|
||||
"@lumeweb/libethsync": "^0.1.0-develop.64",
|
||||
"axios": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -4123,9 +4123,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@lumeweb/libethsync": {
|
||||
"version": "0.1.0-develop.49",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/libethsync/-/libethsync-0.1.0-develop.49.tgz",
|
||||
"integrity": "sha512-Vi/1TGHiUBAaR39uaix6F/oA75/1MzB6lDbQq6lYmYNhm+BowaS314v5+KgjJ3Qo2YtfiGGO+YTGZGOj7N4gZQ==",
|
||||
"version": "0.1.0-develop.64",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/libethsync/-/libethsync-0.1.0-develop.64.tgz",
|
||||
"integrity": "sha512-du0B3lEBj24FjWvrWuFzO/D7G54Cxb8S4Mw/REbr6WPErqYz9Il96NNj+YhkGGpCUFHUS1pzHim774l+R3zv7w==",
|
||||
"dependencies": {
|
||||
"@chainsafe/as-sha256": "^0.3.1",
|
||||
"@chainsafe/bls": "7.1.1",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@lumeweb/interface-relay": "^0.0.2-develop.1",
|
||||
"@lumeweb/libethsync": "^0.1.0-develop.49",
|
||||
"@lumeweb/libethsync": "^0.1.0-develop.64",
|
||||
"axios": "^1.4.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import axios from "axios";
|
|||
|
||||
const EXECUTION_RPC_URL = "https://rpc.ankr.com/eth";
|
||||
|
||||
const CONSENSUS_RPC_URL = "https://www.lightclientdata.org";
|
||||
const CONSENSUS_RPC_URL = "http://nimbus-mainnet.commonprefix.com";
|
||||
|
||||
interface ExecutionRequest {
|
||||
method: string;
|
||||
|
@ -38,7 +38,7 @@ const plugin: Plugin = {
|
|||
request.count = Math.min(request.count, 50);
|
||||
|
||||
if (!client.isSynced) {
|
||||
await client.sync();
|
||||
client.sync();
|
||||
}
|
||||
|
||||
const updates: Uint8Array[] = [];
|
||||
|
@ -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