Omnibus commited on
Commit
45af585
·
1 Parent(s): 9a3e5c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -461,7 +461,7 @@ def mychain_mine_block_send(balance, chain_r=None,chain_n=None):
461
  response = None
462
  show_chain=display_chain_send()
463
  message = "New Chain Created at Max 20 Blocks"
464
- return response, show_chain,pd.DataFrame(mychain_send.pending_transactions), message
465
 
466
  def mychain_mine_block_rec(balance, chain_r=None,chain_n=None):
467
  previous_block = mychain_rec.print_previous_block()
@@ -483,7 +483,7 @@ def mychain_mine_block_rec(balance, chain_r=None,chain_n=None):
483
  response = None
484
  show_chain=display_chain_rec()
485
  message = "New Chain Created at Max 20 Blocks"
486
- return response, show_chain,pd.DataFrame(mychain_rec.pending_transactions), message
487
  def display_chain_send():
488
  response = {'chain': mychain_send.chain,
489
  'length': len(mychain_send.chain)}
@@ -560,10 +560,10 @@ def issue_tokens(send,rec,amount):
560
  mychain_rec.new_transaction(f"{send}",f"{rec}",f"{amount}",f"{balance_rec}")
561
  message_rec = "Transaction Added to Pool"
562
  data_rec = pd.DataFrame(mychain_rec.pending_transactions)
563
- response_send, show_chain_send,data_send, message_send = mychain_mine_block_send(balance_send, chain_r=None,chain_n=send)
564
- response_rec, show_chain_rec,data_rec, message_rec = mychain_mine_block_rec(balance_rec, chain_r=None,chain_n=rec)
565
  mes = (f'Send: {message_send} :: Recieve: {message_rec}')
566
- return (mes, p, response_send, response_rec, show_chain_send, show_chain_rec, data_send, data_rec, message_send, message_rec)
567
 
568
  ############################## MYCHAIN END ###############################
569
 
 
461
  response = None
462
  show_chain=display_chain_send()
463
  message = "New Chain Created at Max 20 Blocks"
464
+ return response, show_chain,message
465
 
466
  def mychain_mine_block_rec(balance, chain_r=None,chain_n=None):
467
  previous_block = mychain_rec.print_previous_block()
 
483
  response = None
484
  show_chain=display_chain_rec()
485
  message = "New Chain Created at Max 20 Blocks"
486
+ return response, show_chain, message
487
  def display_chain_send():
488
  response = {'chain': mychain_send.chain,
489
  'length': len(mychain_send.chain)}
 
560
  mychain_rec.new_transaction(f"{send}",f"{rec}",f"{amount}",f"{balance_rec}")
561
  message_rec = "Transaction Added to Pool"
562
  data_rec = pd.DataFrame(mychain_rec.pending_transactions)
563
+ response_send, show_chain_send, message_send = mychain_mine_block_send(balance_send, chain_r=None,chain_n=send)
564
+ response_rec, show_chain_rec, message_rec = mychain_mine_block_rec(balance_rec, chain_r=None,chain_n=rec)
565
  mes = (f'Send: {message_send} :: Recieve: {message_rec}')
566
+ return (mes, p, response_send, response_rec, show_chain_send, show_chain_rec, pd.DataFrame(mychain_send.pending_transactions), pd.DataFrame(mychain_rec.pending_transactions), message_send, message_rec)
567
 
568
  ############################## MYCHAIN END ###############################
569