Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -334,8 +334,7 @@ def merge_trans():
|
|
334 |
'previous_hash': previous_post_rec['previous_hash']}
|
335 |
trans_bx.append(send_block)
|
336 |
trans_bx.append(rec_block)
|
337 |
-
|
338 |
-
bc_transactions(trans_bx)
|
339 |
|
340 |
|
341 |
|
@@ -416,8 +415,10 @@ def issue_tokens(send,rec,amount):
|
|
416 |
mes = (f'Send: {message_send} :: Recieve: {message_rec}')
|
417 |
_,rec_send=update_send_list()
|
418 |
_,rec_drop=update_rec_list()
|
419 |
-
merge_trans()
|
420 |
-
|
|
|
|
|
421 |
############################## MYCHAIN END ###############################
|
422 |
|
423 |
def res_source():
|
@@ -527,7 +528,7 @@ with gr.Blocks() as bc:
|
|
527 |
json_out_rec = gr.JSON()
|
528 |
chain_json_rec = gr.JSON()
|
529 |
reset_source.click(res_source,None,block_text)
|
530 |
-
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,send,rec])
|
531 |
#issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send])
|
532 |
|
533 |
node_add.click(add_node,[this_space,node_repo,node_space,node_file],block_text)
|
|
|
334 |
'previous_hash': previous_post_rec['previous_hash']}
|
335 |
trans_bx.append(send_block)
|
336 |
trans_bx.append(rec_block)
|
337 |
+
return trans_bx
|
|
|
338 |
|
339 |
|
340 |
|
|
|
415 |
mes = (f'Send: {message_send} :: Recieve: {message_rec}')
|
416 |
_,rec_send=update_send_list()
|
417 |
_,rec_drop=update_rec_list()
|
418 |
+
trans_bx = merge_trans()
|
419 |
+
trans_data, trans_mes = bc_transactions(trans_bx)
|
420 |
+
|
421 |
+
return (mes, p, response_send, response_rec, show_chain_send, show_chain_rec, data_send, data_rec, message_send, message_rec, rec_send, rec_drop,trans_data,trans_mes)
|
422 |
############################## MYCHAIN END ###############################
|
423 |
|
424 |
def res_source():
|
|
|
528 |
json_out_rec = gr.JSON()
|
529 |
chain_json_rec = gr.JSON()
|
530 |
reset_source.click(res_source,None,block_text)
|
531 |
+
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,send,rec,trans_data,block_text])
|
532 |
#issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send])
|
533 |
|
534 |
node_add.click(add_node,[this_space,node_repo,node_space,node_file],block_text)
|