From 10bba7acc69cc02e5332c2cb064da6cde8e43250 Mon Sep 17 00:00:00 2001 From: yourmoonlight Date: Thu, 28 Apr 2022 21:28:35 +0800 Subject: [PATCH] 10k blocks to trigger exec sync --- scripts/sync_block.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sync_block.py b/scripts/sync_block.py index 46053af46b..d7c925fefe 100644 --- a/scripts/sync_block.py +++ b/scripts/sync_block.py @@ -45,12 +45,12 @@ def check_or_do(network): print("main current_height is %s, last_export_height is %s" % (current_height, last_export_height)) - if int(current_height) - int(last_export_height) > 100000: + if int(current_height) - int(last_export_height) > 10000: # export block, kubectl exec export_tmp = "kubectl exec -it -n starcoin-%s starcoin-1 -- /starcoin/starcoin_db_exporter export-block-range --db-path /sc-data/%s -s %s -e %s -n %s -o /sc-data/." start = last_export_height + 1 - end = last_export_height + 100000 + end = last_export_height + 10000 export_cmd = export_tmp % (network, network, start, end, network) print(export_cmd) os.system(export_cmd)