show more info in show-blocks.py script
parent
8d839f62c9
commit
04105a2b70
|
@ -6,6 +6,11 @@ if not os.path.exists('onionr.sh'):
|
||||||
os.chdir('../')
|
os.chdir('../')
|
||||||
sys.path.append("src/")
|
sys.path.append("src/")
|
||||||
from coredb.blockmetadb import get_block_list
|
from coredb.blockmetadb import get_block_list
|
||||||
|
from onionrblocks.onionrblockapi import Block
|
||||||
|
|
||||||
for bl in get_block_list():
|
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)
|
||||||
|
|
Loading…
Reference in New Issue