Created
July 11, 2019 15:27
-
-
Save jpzk/ea38800f80d4651b88e3928910e8b13c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
watermark = 0 | |
with open('blocknumbers') as f: | |
current = int(f.readline()) | |
if(current % 1000 == 0): | |
print(current) | |
if not (watermark + 1 == int(current)): | |
print("inconsistency at " + str(watermark) + ", " + str(current)); | |
sys.exit(-1) | |
watermark = current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment