Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,9 +208,11 @@ def bc_transactions(sender,recipient,amount):
|
|
| 208 |
if out == True:
|
| 209 |
blockchain.new_transaction(f"{sender}",f"{recipient}",f"{amount}")
|
| 210 |
message = "Transaction Added to Pool"
|
|
|
|
| 211 |
if out == False:
|
| 212 |
message = mes
|
| 213 |
-
|
|
|
|
| 214 |
|
| 215 |
def create_chain(create=None):
|
| 216 |
global blockchain
|
|
|
|
| 208 |
if out == True:
|
| 209 |
blockchain.new_transaction(f"{sender}",f"{recipient}",f"{amount}")
|
| 210 |
message = "Transaction Added to Pool"
|
| 211 |
+
data = pd.DataFrame(blockchain.pending_transactions)
|
| 212 |
if out == False:
|
| 213 |
message = mes
|
| 214 |
+
data = None
|
| 215 |
+
return data,message,None,None,None
|
| 216 |
|
| 217 |
def create_chain(create=None):
|
| 218 |
global blockchain
|