From 1e7d7840b191392c4949d7807ae3a200a63b90f8 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 15 Oct 2020 04:00:09 +0000 Subject: [PATCH] added showblocks script --- scripts/show-blocks.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/show-blocks.py diff --git a/scripts/show-blocks.py b/scripts/show-blocks.py new file mode 100644 index 00000000..ed0bda81 --- /dev/null +++ b/scripts/show-blocks.py @@ -0,0 +1,11 @@ +import sys +import os +import stem + +if not os.path.exists('onionr.sh'): + os.chdir('../') +sys.path.append("src/") +from coredb.blockmetadb import get_block_list + +for bl in get_block_list(): + print(bl)