Spaces:
Runtime error
Runtime error
Update blockchain.py
Browse files- blockchain.py +2 -2
blockchain.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import json
|
2 |
class Blockchain:
|
3 |
|
4 |
-
def __init__(self,
|
5 |
global main_chain
|
6 |
-
main_chain=
|
7 |
|
8 |
self.pending_transactions = []
|
9 |
if load == None or load=="":
|
|
|
1 |
import json
|
2 |
class Blockchain:
|
3 |
|
4 |
+
def __init__(self,chain_load,load=None,create=None):
|
5 |
global main_chain
|
6 |
+
main_chain=chain_load
|
7 |
|
8 |
self.pending_transactions = []
|
9 |
if load == None or load=="":
|