1
0

blockchain write method, that flushes file

This commit is contained in:
ThomasV
2017-07-25 10:03:15 +02:00
parent bfcfb1f240
commit 5f3e5866ad
2 changed files with 21 additions and 28 deletions

View File

@@ -842,7 +842,7 @@ class Network(util.DaemonThread):
next_height = None
else:
interface.print_error('checkpoint conflicts with existing fork', branch.path())
open(branch.path(), 'w+').close()
branch.write('', 0)
branch.save_header(interface.bad_header)
interface.mode = 'catch_up'
interface.blockchain = branch