Skip to content

Commit d8adcca

Browse files
author
Logan Sulpizio
committed
Improve parameters of live indexing
1 parent fac0832 commit d8adcca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yam_indexing_module/main_indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313

1414
BLOCK_TO_RETRIEVE = 3 # Number of block to retrieve from the W3 RPC by HTTP request
15-
COUNT_BEFORE_RESYNC = 200 # Number of retrieve before resynchronizing to the latest block
16-
BLOCK_BUFFER = 4 # Gap between the latest block available and what is actually retrieve
15+
COUNT_BEFORE_RESYNC = 100 # Number of retrieve before resynchronizing to the latest block
16+
BLOCK_BUFFER = 5 # Gap between the latest block available and what is actually retrieve
1717
TIME_TO_WAIT_BEFORE_RETRY = 1.5 # time to wait before retry when RPC is not available
1818
MAX_RETRIES_PER_BLOCK_RANGE = 6 # Number of time the request will be retried when it has failed before changing the RPC
1919
COUNT_PERIODIC_BACKFILL_THEGRAPH = 960 # Number of iteration before backfilling the blocks into the DB the blocks of the last few hours (with TheGraph)

0 commit comments

Comments
 (0)