We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec19064 commit 36007b5Copy full SHA for 36007b5
blockchain.py
@@ -173,8 +173,6 @@ def valid_chain(self, chain):
173
:return: True if valid, False if not
174
"""
175
176
- chain = jsonpickle.decode(chain)
177
-
178
previous_block = chain[0]
179
180
current_index = 1
@@ -198,7 +196,7 @@ def initialize_chain(self, chain_from_network):
198
196
To do this, I ask the network the chain and initialize mine with this chain.
199
197
We should to something like a concensus (the largest chain win), but it's not done yet.
200
201
- chain = jsonpickle.encode(chain_from_network)
+ chain = jsonpickle.decode(chain_from_network)
202
203
if self.valid_chain(chain):
204
print('Initialize chain')
0 commit comments