validation: Move invalid block handling to CChainState

- InvalidChainFound
- CheckForkWarningConditions
This commit is contained in:
Carl Dong
2020-10-05 15:14:35 -04:00
parent 2bdf37fe18
commit 8b99efbcc0
2 changed files with 13 additions and 7 deletions

View File

@@ -773,6 +773,9 @@ private:
//! Mark a block as not having block data
void EraseBlockData(CBlockIndex* index) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
void CheckForkWarningConditions() EXCLUSIVE_LOCKS_REQUIRED(cs_main);
void InvalidChainFound(CBlockIndex* pindexNew) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
friend ChainstateManager;
};