diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-03-23 08:18:35 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-03-23 08:18:43 +0100 |
commit | 7b585cf70ec58ca73a5d951b3968b0e0779b7dc1 (patch) | |
tree | d690c6d5c3af8060b79426270bb356ea5a4888af /src | |
parent | 86f7d5b69bb72b85d71c32329cc43e80897ce348 (diff) | |
parent | c4a6929a3dd729abe9e55cba6417c21efa3ffc48 (diff) |
Merge #9558: Clarify assumptions made about when BlockCheck is called
c4a6929 Clarify assumptions made about when BlockCheck is called (Matt Corallo)
Tree-SHA512: 2eceb0c4f06c7fd6b290b93843bda11a4b63131559c5e8226bfec84596ed4e54ee6d8f5bc9cf789a80675be8b8079cf9234c96032df306258cb2260b9d8c7825
Diffstat (limited to 'src')
-rw-r--r-- | src/validationinterface.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index a494eb6990..7f13a29d23 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -69,7 +69,12 @@ struct CMainSignals { boost::signals2::signal<void (const uint256 &)> Inventory; /** Tells listeners to broadcast their data. */ boost::signals2::signal<void (int64_t nBestBlockTime, CConnman* connman)> Broadcast; - /** Notifies listeners of a block validation result */ + /** + * Notifies listeners of a block validation result. + * If the provided CValidationState IsValid, the provided block + * is guaranteed to be the current best block at the time the + * callback was generated (not necessarily now) + */ boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked; /** Notifies listeners that a key for mining is required (coinbase) */ boost::signals2::signal<void (boost::shared_ptr<CReserveScript>&)> ScriptForMining; |