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 |
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 React from 'react'; | |
import { render, Box, Text } from 'ink'; | |
import { useInput, useApp } from 'ink'; | |
import { Tabs, Tab, TabProps } from 'ink-tab'; | |
import { useState, useEffect } from 'react'; | |
import Table from 'ink-table' | |
import TextInput from 'ink-text-input'; |
OlderNewer