From 04105a2b706510d0559be55335a15c9f0548c973 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 3 Nov 2020 04:38:35 +0000 Subject: [PATCH] show more info in show-blocks.py script --- scripts/show-blocks.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/show-blocks.py b/scripts/show-blocks.py index ed0bda81..cfb3f5e3 100644 --- a/scripts/show-blocks.py +++ b/scripts/show-blocks.py @@ -6,6 +6,11 @@ if not os.path.exists('onionr.sh'): os.chdir('../') sys.path.append("src/") from coredb.blockmetadb import get_block_list +from onionrblocks.onionrblockapi import Block for bl in get_block_list(): - print(bl) + bl_obj = Block(bl, decrypt=False) + b_type = bl_obj.getType() + if not b_type: + b_type = "encrypted" + print(bl + " - " + str(bl_obj.date) + " - " + b_type)