Spaces:
Runtime error
Runtime error
Update blockchain.py
Browse files- blockchain.py +1 -0
blockchain.py
CHANGED
@@ -66,6 +66,7 @@ class Blockchain:
|
|
66 |
def print_previous_block(self):
|
67 |
return self.chain[-1]
|
68 |
def new_transaction(self, block):
|
|
|
69 |
trans_data = {
|
70 |
'name': block['transactions'][0]['sender'],
|
71 |
'index': block['index'],
|
|
|
66 |
def print_previous_block(self):
|
67 |
return self.chain[-1]
|
68 |
def new_transaction(self, block):
|
69 |
+
print (f'block::{block}')
|
70 |
trans_data = {
|
71 |
'name': block['transactions'][0]['sender'],
|
72 |
'index': block['index'],
|