-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This includes three fixes to header handling.
- Allow ElectrumSV to start up when there are no headers in the header store (likely only the Genesis block and no known blocks mined on regtest as yet). - Remove the ill conceived workaround for the bug in Python pickling when deserialising headers. The reason to avoid this workaround and others like it is we have no idea if we are repairing the only problem that could be caused by this bug. Better to classify it as not our problem and blame upstream Python. - Attempt to address the long standing problem with headers file corruption (see Github issue #1043). The Python mmap documentation clearly states that `flush` must be called and for some reason we do not call it. Now we call both `flush` and `close` on the underlying mmap object. It remains to be seen if this will fix the problem, but exiting does not error so it does not hurt.
- Loading branch information
1 parent
15afbbe
commit d47b306
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters