Adjust rewind logic to use the network upgrade mechanism

This commit is contained in:
Jack Grigg
2018-01-27 23:37:43 +00:00
parent 89f20450c2
commit 9e851450ab
5 changed files with 70 additions and 14 deletions

View File

@@ -436,7 +436,11 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
/** When there are blocks in the active chain with missing data, rewind the chainstate and remove them from the block index */
/**
* When there are blocks in the active chain with missing data (e.g. if the
* activation height and branch ID of a particular upgrade have been altered),
* rewind the chainstate and remove them from the block index.
*/
bool RewindBlockIndex(const CChainParams& params);
class CBlockFileInfo