diff options
author | James O'Beirne <james.obeirne@pm.me> | 2023-08-24 16:51:16 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-09-30 06:38:47 -0400 |
commit | 1e59acdf17309f567c370885f0cf02605e2baa58 (patch) | |
tree | efa1d460c67b8ae1a098f8b6bbb588a2d2172b50 /src/validationinterface.h | |
parent | c6af23c5179cc383f8e6c275373af8d11e6a989f (diff) |
validation: only call UpdatedBlockTip for active chainstate
This notification isn't needed for background chainstates.
`kernel::Notifications::blockTip` are also skipped.
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r-- | src/validationinterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index 8c20cc8ffb..5bdd7e0123 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -87,7 +87,7 @@ protected: * but may not be called on every intermediate tip. If the latter behavior is desired, * subscribe to BlockConnected() instead. * - * Called on a background thread. + * Called on a background thread. Only called for the active chainstate. */ virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) {} /** |