Skip to content

Instantly share code, notes, and snippets.

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
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';