We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe6cfe commit 7d976a9Copy full SHA for 7d976a9
scraper_service/shovel_alpha_to_tao/main.py
@@ -13,6 +13,7 @@
13
logging.basicConfig(level=logging.INFO,
14
format="%(asctime)s %(process)d %(message)s")
15
16
+BLOCKS_AN_HOUR = (60 * 60) / 12
17
18
class AlphaToTaoShovel(ShovelBaseClass):
19
table_name = "shovel_alpha_to_tao"
@@ -27,6 +28,10 @@ def process_block(self, n):
27
28
29
30
def do_process_block(self, n):
31
+ # We don't need this data every block.
32
+ if n % BLOCKS_AN_HOUR != 0:
33
+ return
34
+
35
try:
36
substrate = get_substrate_client()
37
0 commit comments