2020-10-15 04:00:09 +00:00
|
|
|
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
|
2021-01-17 04:58:28 +00:00
|
|
|
from oldblocks.onionrblockapi import Block
|
2020-10-15 04:00:09 +00:00
|
|
|
|
|
|
|
for bl in get_block_list():
|
2020-11-03 04:38:35 +00:00
|
|
|
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)
|