Skip to content

Instantly share code, notes, and snippets.

@jpzk
Created July 11, 2019 15:27
Show Gist options
  • Save jpzk/ea38800f80d4651b88e3928910e8b13c to your computer and use it in GitHub Desktop.
Save jpzk/ea38800f80d4651b88e3928910e8b13c to your computer and use it in GitHub Desktop.
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