Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -461,7 +461,7 @@ def mychain_mine_block_send(balance, chain_r=None,chain_n=None):
|
|
461 |
response = {'message': 'A block is MINED',
|
462 |
'index': block['index'],
|
463 |
'timestamp': block['timestamp'],
|
464 |
-
|
465 |
'proof': block['proof'],
|
466 |
'previous_hash': block['previous_hash']}
|
467 |
message = "A block is MINED"
|
@@ -483,7 +483,7 @@ def mychain_mine_block_rec(balance, chain_r=None,chain_n=None):
|
|
483 |
response = {'message': 'A block is MINED',
|
484 |
'index': block['index'],
|
485 |
'timestamp': block['timestamp'],
|
486 |
-
|
487 |
'proof': block['proof'],
|
488 |
'previous_hash': block['previous_hash']}
|
489 |
message = "A block is MINED"
|
@@ -620,12 +620,12 @@ with gr.Blocks() as bc:
|
|
620 |
with gr.Column():
|
621 |
block_text_send = gr.Textbox()
|
622 |
trans_data_send = gr.Dataframe()
|
623 |
-
json_out_send = gr.
|
624 |
chain_json_send = gr.JSON()
|
625 |
with gr.Column():
|
626 |
block_text_rec = gr.Textbox()
|
627 |
trans_data_rec = gr.Dataframe()
|
628 |
-
json_out_rec = gr.
|
629 |
chain_json_rec = gr.JSON()
|
630 |
issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send,json_out_rec,chain_json_send,chain_json_rec,trans_data_send,trans_data_rec,block_text_send,block_text_rec])
|
631 |
#issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send])
|
|
|
461 |
response = {'message': 'A block is MINED',
|
462 |
'index': block['index'],
|
463 |
'timestamp': block['timestamp'],
|
464 |
+
'balance': block['balance'],
|
465 |
'proof': block['proof'],
|
466 |
'previous_hash': block['previous_hash']}
|
467 |
message = "A block is MINED"
|
|
|
483 |
response = {'message': 'A block is MINED',
|
484 |
'index': block['index'],
|
485 |
'timestamp': block['timestamp'],
|
486 |
+
'balance': block['balance'],
|
487 |
'proof': block['proof'],
|
488 |
'previous_hash': block['previous_hash']}
|
489 |
message = "A block is MINED"
|
|
|
620 |
with gr.Column():
|
621 |
block_text_send = gr.Textbox()
|
622 |
trans_data_send = gr.Dataframe()
|
623 |
+
json_out_send = gr.Textbox()
|
624 |
chain_json_send = gr.JSON()
|
625 |
with gr.Column():
|
626 |
block_text_rec = gr.Textbox()
|
627 |
trans_data_rec = gr.Dataframe()
|
628 |
+
json_out_rec = gr.Textbox()
|
629 |
chain_json_rec = gr.JSON()
|
630 |
issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send,json_out_rec,chain_json_send,chain_json_rec,trans_data_send,trans_data_rec,block_text_send,block_text_rec])
|
631 |
#issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send])
|