tfix: order files in save_chunk too - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ab5a9f3ce461040e52bf3caca376a26f5ff9d0c3 DIR parent 0c6de8ff56f417f67fc935b292d20e4dd84fe5d5 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 20 Jul 2017 07:56:54 +0200 fix: order files in save_chunk too Diffstat: M lib/blockchain.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/blockchain.py b/lib/blockchain.py t@@ -178,6 +178,9 @@ class Blockchain(util.PrintError): with open(filename, 'rb+') as f: f.seek(d) 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): self.print_error("swap", self.checkpoint, self.parent.checkpoint)