Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,12 +106,13 @@ st.subheader("Blockchain Ledger")
|
|
| 106 |
for block in blockchain.chain:
|
| 107 |
st.write({
|
| 108 |
"Index": block.index,
|
| 109 |
-
"Timestamp":
|
| 110 |
"Transactions": block.transactions,
|
| 111 |
"Previous Hash": block.previous_hash,
|
| 112 |
"Hash": block.hash,
|
| 113 |
})
|
| 114 |
|
|
|
|
| 115 |
# Validate Blockchain
|
| 116 |
if st.button("Validate Blockchain"):
|
| 117 |
if blockchain.is_chain_valid():
|
|
|
|
| 106 |
for block in blockchain.chain:
|
| 107 |
st.write({
|
| 108 |
"Index": block.index,
|
| 109 |
+
"Timestamp": block.timestamp, # Already in PST format
|
| 110 |
"Transactions": block.transactions,
|
| 111 |
"Previous Hash": block.previous_hash,
|
| 112 |
"Hash": block.hash,
|
| 113 |
})
|
| 114 |
|
| 115 |
+
|
| 116 |
# Validate Blockchain
|
| 117 |
if st.button("Validate Blockchain"):
|
| 118 |
if blockchain.is_chain_valid():
|