Spaces:
Runtime error
Runtime error
Update bc_utils.py
Browse files- bc_utils.py +2 -0
bc_utils.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import requests
|
2 |
from mychain import Blockchain
|
|
|
3 |
import pandas as pd
|
4 |
import json
|
5 |
|
@@ -55,6 +56,7 @@ def mine_block(chain_r=None,chain_n=None):
|
|
55 |
response = None
|
56 |
show_chain=display_chain()
|
57 |
message = "New Chain Created at Max 20 Blocks"
|
|
|
58 |
return response, show_chain,pd.DataFrame(blockchain.pending_transactions), message
|
59 |
|
60 |
def valid():
|
|
|
1 |
import requests
|
2 |
from mychain import Blockchain
|
3 |
+
from mychain import MyChainTrans
|
4 |
import pandas as pd
|
5 |
import json
|
6 |
|
|
|
56 |
response = None
|
57 |
show_chain=display_chain()
|
58 |
message = "New Chain Created at Max 20 Blocks"
|
59 |
+
MyChainTrans.reset(self,create=chain_d)
|
60 |
return response, show_chain,pd.DataFrame(blockchain.pending_transactions), message
|
61 |
|
62 |
def valid():
|