added block ID
This commit is contained in:
@@ -15,6 +15,7 @@ def exploreBlocks(self):
|
|||||||
total_transactions += len(block.data)
|
total_transactions += len(block.data)
|
||||||
print(f"---------------------------------------{x}-------------------------------------------")
|
print(f"---------------------------------------{x}-------------------------------------------")
|
||||||
print(block)
|
print(block)
|
||||||
|
print(f"Block id: {block.id}")
|
||||||
print(f"Block created: {time.strftime('%Y-%m-%d', time.localtime(block.date))}")
|
print(f"Block created: {time.strftime('%Y-%m-%d', time.localtime(block.date))}")
|
||||||
print("---------------------------------------END-------------------------------------------")
|
print("---------------------------------------END-------------------------------------------")
|
||||||
print(f"Total blocks: {x}")
|
print(f"Total blocks: {x}")
|
||||||
|
Reference in New Issue
Block a user