From 81ea33ddcd713ff66ff72677a1147e607efe63aa Mon Sep 17 00:00:00 2001 From: Mikolaj Jakobiak Date: Wed, 11 Sep 2024 14:48:18 +0100 Subject: [PATCH] 3h poll period; changed publicnode to alchemy --- crates/monitor_events/networks/base_sepolia.json | 2 +- crates/monitor_events/networks/optimism_sepolia.json | 2 +- pm2.config.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/monitor_events/networks/base_sepolia.json b/crates/monitor_events/networks/base_sepolia.json index 558f591..0b1d781 100644 --- a/crates/monitor_events/networks/base_sepolia.json +++ b/crates/monitor_events/networks/base_sepolia.json @@ -2,7 +2,7 @@ "name": "base_sepolia", "l1_contract": "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254", "block_delay": 20, - "poll_period_sec": 60, + "poll_period_sec": 10800, "batch_size": 50000, "l1_contract_deployment_block": 4370901 } diff --git a/crates/monitor_events/networks/optimism_sepolia.json b/crates/monitor_events/networks/optimism_sepolia.json index c32ca44..d52818b 100644 --- a/crates/monitor_events/networks/optimism_sepolia.json +++ b/crates/monitor_events/networks/optimism_sepolia.json @@ -2,7 +2,7 @@ "name": "optimism_sepolia", "l1_contract": "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F", "block_delay": 20, - "poll_period_sec": 60, + "poll_period_sec": 10800, "batch_size": 50000, "l1_contract_deployment_block": 4071248 } diff --git a/pm2.config.js b/pm2.config.js index 3199297..4b9cb50 100644 --- a/pm2.config.js +++ b/pm2.config.js @@ -25,7 +25,8 @@ module.exports = { env: { CHAIN_TYPE: "sepolia", CHAIN_NAME: "base", - RPC_URL: "https://ethereum-sepolia-rpc.publicnode.com", + RPC_URL: + "https://eth-sepolia.g.alchemy.com/v2/1cpBOW7IDNaPC1Dybn6Qbv6uMszcmjlr", DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer", }, }, @@ -35,7 +36,8 @@ module.exports = { env: { CHAIN_TYPE: "sepolia", CHAIN_NAME: "optimism", - RPC_URL: "https://ethereum-sepolia-rpc.publicnode.com", + RPC_URL: + "https://eth-sepolia.g.alchemy.com/v2/1cpBOW7IDNaPC1Dybn6Qbv6uMszcmjlr", DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer", }, },