Skip to content

Commit c03edd6

Browse files
authored
Increase intervals. Improve consensus error text (#117)
1 parent 8f97f3f commit c03edd6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

oracle/oracle/common/clients.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ async def execute_gql_query(
153153
if results.count(item) > majority:
154154
result = item
155155
majority = results.count(item)
156-
156+
else:
157+
diff = item
157158
if majority >= len(subgraph_urls) // 2 + 1:
158159
return result
159-
raise GraphqlConsensusError
160+
raise GraphqlConsensusError(f"{diff} not equals to {result}")

oracle/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
CONFIRMATION_BLOCKS: int = config("CONFIRMATION_BLOCKS", default=15, cast=int)
2828

2929
# oracle
30-
ORACLE_PROCESS_INTERVAL = config("ORACLE_PROCESS_INTERVAL", default=10, cast=int)
30+
ORACLE_PROCESS_INTERVAL = config("ORACLE_PROCESS_INTERVAL", default=15, cast=int)
3131

3232
IPFS_FETCH_ENDPOINTS = config(
3333
"IPFS_FETCH_ENDPOINTS",
@@ -56,7 +56,7 @@
5656
)
5757

5858
# keeper
59-
KEEPER_PROCESS_INTERVAL = config("KEEPER_PROCESS_INTERVAL", default=10, cast=int)
59+
KEEPER_PROCESS_INTERVAL = config("KEEPER_PROCESS_INTERVAL", default=60, cast=int)
6060

6161
TRANSACTION_TIMEOUT = config("TRANSACTION_TIMEOUT", default=900, cast=int)
6262

0 commit comments

Comments
 (0)