Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,11 +28,11 @@ api = HfApi(token=token_self)
|
|
28 |
|
29 |
######################## BLOCKCHAIN START ###############################
|
30 |
|
31 |
-
def bc_transactions(block):
|
32 |
#mes, out = issue_tokens(sender,recipient,amount)
|
33 |
|
34 |
try:
|
35 |
-
blockchain.new_transaction(block)
|
36 |
message = "Transaction Added to Pool"
|
37 |
data = pd.DataFrame(blockchain.trans_data_out)
|
38 |
except Exception as e:
|
|
|
28 |
|
29 |
######################## BLOCKCHAIN START ###############################
|
30 |
|
31 |
+
def bc_transactions(block,prev_block=None):
|
32 |
#mes, out = issue_tokens(sender,recipient,amount)
|
33 |
|
34 |
try:
|
35 |
+
blockchain.new_transaction(block,prev_block=None)
|
36 |
message = "Transaction Added to Pool"
|
37 |
data = pd.DataFrame(blockchain.trans_data_out)
|
38 |
except Exception as e:
|