diff options
author | James O'Beirne <james.obeirne@pm.me> | 2021-07-09 09:34:39 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2021-07-13 11:16:37 -0400 |
commit | ceb7b35a39145717e2d9d356fd382bd1f95d2a5a (patch) | |
tree | 60a127d8fc290b5d46fbdd4959e898b6eba37ab0 /src/validation.h | |
parent | 4abf0779d6594e97222279110c328b75b5f3db7b (diff) |
refactor: move UpdateTip into CChainState
Makes sense and saves on arguments.
Co-authored-by: John Newbery <john@johnnewbery.com>
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 5505ec463f..9a2be3ad97 100644 --- a/src/validation.h +++ b/src/validation.h @@ -823,6 +823,10 @@ private: DisconnectedBlockTransactions& disconnectpool, bool fAddToMempool) EXCLUSIVE_LOCKS_REQUIRED(cs_main, m_mempool->cs); + /** Check warning conditions and do some notifications on new chain tip set. */ + void UpdateTip(const CBlockIndex* pindexNew) + EXCLUSIVE_LOCKS_REQUIRED(::cs_main); + friend ChainstateManager; }; |