1
0

make blockchain.size() threadsafe

This commit is contained in:
ThomasV
2017-07-24 15:54:42 +02:00
parent 622f459c41
commit d71c9d5be3
2 changed files with 38 additions and 21 deletions

View File

@@ -854,8 +854,7 @@ class Network(util.DaemonThread):
if bh > interface.good:
if not interface.blockchain.check_header(interface.bad_header):
if interface.blockchain.can_connect(interface.bad_header, check_height=False):
b = interface.blockchain.fork(interface.bad)
b.save_header(interface.bad_header)
b = interface.blockchain.fork(interface.bad_header)
self.blockchains[interface.bad] = b
interface.blockchain = b
interface.print_error("new chain", b.checkpoint)