Skip to content

Commit

Permalink
10k blocks to trigger exec sync
Browse files Browse the repository at this point in the history
  • Loading branch information
yourmoonlight committed Apr 28, 2022
1 parent 127fcc6 commit 10bba7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sync_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10bba7a

Please sign in to comment.