mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
fix: order files in save_chunk too
This commit is contained in:
parent
0c6de8ff56
commit
ab5a9f3ce4
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ class Blockchain(util.PrintError):
|
||||||
with open(filename, 'rb+') as f:
|
with open(filename, 'rb+') as f:
|
||||||
f.seek(d)
|
f.seek(d)
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
|
# order files
|
||||||
|
if self.parent and self.parent.get_branch_size() < self.get_branch_size():
|
||||||
|
self.swap_with_parent()
|
||||||
|
|
||||||
def swap_with_parent(self):
|
def swap_with_parent(self):
|
||||||
self.print_error("swap", self.checkpoint, self.parent.checkpoint)
|
self.print_error("swap", self.checkpoint, self.parent.checkpoint)
|
||||||
|
|
Loading…
Add table
Reference in a new issue