Skip to content

Commit 36007b5

Browse files
committed
wip fix init bc
1 parent ec19064 commit 36007b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

blockchain.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ def valid_chain(self, chain):
173173
:return: True if valid, False if not
174174
"""
175175

176-
chain = jsonpickle.decode(chain)
177-
178176
previous_block = chain[0]
179177

180178
current_index = 1
@@ -198,7 +196,7 @@ def initialize_chain(self, chain_from_network):
198196
To do this, I ask the network the chain and initialize mine with this chain.
199197
We should to something like a concensus (the largest chain win), but it's not done yet.
200198
"""
201-
chain = jsonpickle.encode(chain_from_network)
199+
chain = jsonpickle.decode(chain_from_network)
202200

203201
if self.valid_chain(chain):
204202
print('Initialize chain')

0 commit comments

Comments
 (0)