Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix block serialization order in fork_database::close - v1.8.x #7326

Merged
merged 1 commit into from
May 11, 2019

Conversation

arhag
Copy link
Contributor

@arhag arhag commented May 11, 2019

Change Description

This PR fixes a bug in fork_database::close which serialized blocks to disk in the wrong order thus causing unlinkable block errors when attempting to open the fork_db.dat file in fork_database::open.

Also, a new unit test, forked_tests/reopen_forkdb, has been added to test a scenario that lead to the unlinkable block errors described above when the fork_database::close was not fixed.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

…ong order (caused linking issues when opening the file)

Also adds forked_tests/reopen_forkdb unit test.
@arhag arhag merged commit bb56842 into release/1.8.x May 11, 2019
@arhag arhag deleted the fix-forkdb-close-1.8 branch May 11, 2019 02:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants