From 0cd994490b5c63ad680321a755e6459032a765e1 Mon Sep 17 00:00:00 2001 From: Guantong Date: Mon, 6 Jan 2025 14:36:44 +0800 Subject: [PATCH] update blast rpc --- client/src/utils/chains.js | 4 ++-- server/config/chains.js | 4 ++-- server/plugins/cron.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/utils/chains.js b/client/src/utils/chains.js index 025d0cc..1b791b4 100644 --- a/client/src/utils/chains.js +++ b/client/src/utils/chains.js @@ -59,7 +59,7 @@ const Chains = [ { "name": "ethereum", "id": 1, - "endpoint": "https://ethereum.publicnode.com", + "endpoint": "https://ethereum-rpc.publicnode.com", "contract": { "signcribe": "0x57aa601a0377f5ab313c5a955ee874f5d495fc92", "relayer": "0x114890eB7386F94eae410186F20968bFAf66142a", @@ -97,7 +97,7 @@ const Chains = [ { "name": "blast", "id": 81457, - "endpoint": "https://rpc.blast.io", + "endpoint": "https://blast-rpc.publicnode.com", "contract": { "signcribe": "0x57aa601a0377f5ab313c5a955ee874f5d495fc92", "relayer": "0x114890eB7386F94eae410186F20968bFAf66142a", diff --git a/server/config/chains.js b/server/config/chains.js index 571779c..9692a33 100644 --- a/server/config/chains.js +++ b/server/config/chains.js @@ -59,7 +59,7 @@ const Chains = [ { "name": "ethereum", "id": 1, - "endpoint": "https://ethereum.publicnode.com", + "endpoint": "https://ethereum-rpc.publicnode.com", "contract": { "signcribe": "0x57aa601a0377f5ab313c5a955ee874f5d495fc92", "relayer": "0x114890eB7386F94eae410186F20968bFAf66142a", @@ -97,7 +97,7 @@ const Chains = [ { "name": "blast", "id": 81457, - "endpoint": "https://rpc.blast.io", + "endpoint": "https://blast-rpc.publicnode.com", "contract": { "signcribe": "0x57aa601a0377f5ab313c5a955ee874f5d495fc92", "relayer": "0x114890eB7386F94eae410186F20968bFAf66142a", diff --git a/server/plugins/cron.js b/server/plugins/cron.js index 54aef48..f120ba9 100644 --- a/server/plugins/cron.js +++ b/server/plugins/cron.js @@ -190,13 +190,13 @@ export default fp(async (fastify) => { } async function checkTimeoutRelay() { - fastify.log.info("==> checkTimeoutRelay") const warns = []; const now = Math.floor(Date.now() / 1000); const oneDayAgo = now - 24 * 60 * 60; // const oneDayAgo = 1719701000; const halfHourAgo = now - 30 * 60; const oneHourAgo = now - 60 * 60 * 1; + fastify.log.info(`==> checkTimeoutRelay: ${oneDayAgo}, ${halfHourAgo}`); const query = `query MessageList($timestampGt: numeric!, $timestampLt: numeric!) { MessagePort(order_by: {sourceBlockTimestamp: desc}, where: {