HomePhabricator

Split the block undoing in two parts and add unit tests.

Description

Split the block undoing in two parts and add unit tests.

The first read the undo data from disk and the second does the undo. This ensure we don't depend on the state of the filesystem to undo and makes is easier to unit test. The patch also includes a basic unit test for undo.

Details

Provenance
deadalnixAuthored on May 11 2017, 17:32
deadalnixPushed on May 14 2017, 22:04
Parents
rABC85ea36bf17f4: Format miner.h and miner.cpp
Branches
Unknown
Tags
Unknown