From b09bca3b5c1ce4aaea54f92afd0be99be14a7bd5 Mon Sep 17 00:00:00 2001 From: Igor Sereda Date: Tue, 3 Dec 2024 03:45:01 +0300 Subject: [PATCH] Added rate limits for Etherlink Node Datasource --- bridge_indexer/dipdup.yaml | 4 ++++ bridge_indexer/handlers/rollup_message.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bridge_indexer/dipdup.yaml b/bridge_indexer/dipdup.yaml index b4a4291..e5fd34f 100644 --- a/bridge_indexer/dipdup.yaml +++ b/bridge_indexer/dipdup.yaml @@ -35,6 +35,10 @@ datasources: etherlink_node: kind: evm.node url: ${ETHERLINK_NODE_URL} + http: + ratelimit_rate: 1000 + ratelimit_period: 60 + ratelimit_sleep: 1 etherlink_subsquid: kind: evm.subsquid diff --git a/bridge_indexer/handlers/rollup_message.py b/bridge_indexer/handlers/rollup_message.py index 6cba04e..fb6eae0 100644 --- a/bridge_indexer/handlers/rollup_message.py +++ b/bridge_indexer/handlers/rollup_message.py @@ -1,4 +1,3 @@ -import base64 import threading from datetime import datetime