1
0

logging: some extra network-related lines

This commit is contained in:
SomberNight
2018-02-22 16:44:22 +01:00
parent 0928ac961a
commit 02c7524d75
3 changed files with 19 additions and 5 deletions

View File

@@ -226,6 +226,9 @@ class Blockchain(util.PrintError):
if truncate and offset != self._size*80:
f.seek(offset)
f.truncate()
self.print_error(
'write. truncating to offset {}, which is around chunk {}'
.format(offset, offset//80//2016))
f.seek(offset)
f.write(data)
f.flush()