diff options
author | Matt Corallo <git@bluematt.me> | 2017-10-09 11:19:10 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-05-24 13:55:52 -0400 |
commit | 0948153ea62ff4921daef326da0fddb8425cd866 (patch) | |
tree | 64d7940ec8219d95f28e622d4ecced42a07707c3 /src/validationinterface.h | |
parent | c71e535aec5aaef04764238a94e456f2405adbb5 (diff) | |
download | bitcoin-0948153ea62ff4921daef326da0fddb8425cd866.tar.xz |
Do not unlock cs_main in ABC unless we've actually made progress.
Technically, some internal datastructures may be in an inconsistent
state if we do this, though there are no known bugs there. Still,
for future safety, its much better to only unlock cs_main if we've
made progress (not just tried a reorg which may make progress).
Github-Pull: #13023
Rebased-From: ecc3c4a019e6db30e208b8554b1a3658dcb9a80a
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r-- | src/validationinterface.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index 56ea698a2e..8f71be14c2 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -56,7 +56,11 @@ void SyncWithValidationInterfaceQueue(); class CValidationInterface { protected: /** - * Notifies listeners of updated block chain tip + * Notifies listeners when the block chain tip advances. + * + * When multiple blocks are connected at once, UpdatedBlockTip will be called on the final tip + * but may not be called on every intermediate tip. If the latter behavior is desired, + * subscribe to BlockConnected() instead. * * Called on a background thread. */ |