Add rewind logic to deal with post-fork software updates

Includes logic for dealing with pruning by Suhas Daftuar.
This commit is contained in:
Pieter Wuille
2016-03-18 17:20:12 +01:00
committed by Jack Grigg
parent f52da91139
commit 89f20450c2
4 changed files with 122 additions and 15 deletions

View File

@@ -436,6 +436,9 @@ 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 */
bool RewindBlockIndex(const CChainParams& params);
class CBlockFileInfo
{
public: