Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -275,12 +275,12 @@ def mychain_mine_block_send(balance, chain_r=None,chain_n=None):
|
|
275 |
|
276 |
block = {'index': previous_post['index'],
|
277 |
'timestamp': previous_post['timestamp'],
|
278 |
-
'sender': previous_post['transactions'][
|
279 |
-
'recipient': previous_post['transactions'][
|
280 |
-
'amount': previous_post['transactions'][
|
281 |
'balance': previous_post['balance'],
|
282 |
-
'proof': previous_post['
|
283 |
-
'previous_hash': previous_post['
|
284 |
bc_transactions(block)
|
285 |
|
286 |
|
|
|
275 |
|
276 |
block = {'index': previous_post['index'],
|
277 |
'timestamp': previous_post['timestamp'],
|
278 |
+
'sender': previous_post['transactions'][0],
|
279 |
+
'recipient': previous_post['transactions'][1],
|
280 |
+
'amount': previous_post['transactions'][2],
|
281 |
'balance': previous_post['balance'],
|
282 |
+
'proof': previous_post['proof'],
|
283 |
+
'previous_hash': previous_post['previous_hash']}
|
284 |
bc_transactions(block)
|
285 |
|
286 |
|