fix prev; offset is relative to last forking height
This commit is contained in:
@@ -226,9 +226,6 @@ class Blockchain(util.PrintError):
|
|||||||
if truncate and offset != self._size*80:
|
if truncate and offset != self._size*80:
|
||||||
f.seek(offset)
|
f.seek(offset)
|
||||||
f.truncate()
|
f.truncate()
|
||||||
self.print_error(
|
|
||||||
'write. truncating to offset {}, which is around chunk {}'
|
|
||||||
.format(offset, offset//80//2016))
|
|
||||||
f.seek(offset)
|
f.seek(offset)
|
||||||
f.write(data)
|
f.write(data)
|
||||||
f.flush()
|
f.flush()
|
||||||
|
|||||||
Reference in New Issue
Block a user