From c4a6929a3dd729abe9e55cba6417c21efa3ffc48 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 14 Jan 2017 13:40:46 -0800 Subject: [PATCH] Clarify assumptions made about when BlockCheck is called --- src/validationinterface.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/validationinterface.h b/src/validationinterface.h index a29859999..16dbdf005 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -60,7 +60,12 @@ struct CMainSignals { boost::signals2::signal Inventory; /** Tells listeners to broadcast their data. */ boost::signals2::signal 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 BlockChecked; /** Notifies listeners that a key for mining is required (coinbase) */ boost::signals2::signal&)> ScriptForMining;