Spaces:
Runtime error
Runtime error
Update mychain.py
Browse files- mychain.py +1 -1
mychain.py
CHANGED
@@ -168,7 +168,7 @@ class MyChainRec:
|
|
168 |
self.chain = []
|
169 |
self.pending_transactions = []
|
170 |
self.create_block(proof=1, previous_hash='0',chain_n=create)
|
171 |
-
def create_block(self, balance, proof, previous_hash, prev_block
|
172 |
if chain_r=="" or chain_r==None:
|
173 |
chain_r=f"{main_chain_rec.split('datasets/',1)[1].split('/raw',1)[0]}"
|
174 |
if chain_n !="" and chain_n !=None:
|
|
|
168 |
self.chain = []
|
169 |
self.pending_transactions = []
|
170 |
self.create_block(proof=1, previous_hash='0',chain_n=create)
|
171 |
+
def create_block(self, balance, proof, previous_hash, prev_block,chain_r=None,chain_n=None):
|
172 |
if chain_r=="" or chain_r==None:
|
173 |
chain_r=f"{main_chain_rec.split('datasets/',1)[1].split('/raw',1)[0]}"
|
174 |
if chain_n !="" and chain_n !=None:
|