This commit is contained in:
ThomasV 2017-07-19 06:46:37 +02:00
parent afda151bc6
commit 0b6d7dbbc9
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ class Blockchain(util.PrintError):
self.write_header(h)
self.headers = []
self.is_saved = True
# update pointers
blockchains[self.checkpoint] = self
blockchains[parent.checkpoint] = parent
def save_header(self, header):
N = 10