aboutsummaryrefslogtreecommitdiff
path: root/src/validationinterface.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-01-14 13:40:46 -0800
committerMatt Corallo <git@bluematt.me>2017-01-14 13:40:46 -0800
commitc4a6929a3dd729abe9e55cba6417c21efa3ffc48 (patch)
tree24aa439ba6d712eed67ac8ba042ddf730426c4ca /src/validationinterface.h
parentd4781ac6c26399d316a2b25f656d9a4c0990c419 (diff)
Clarify assumptions made about when BlockCheck is called
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r--src/validationinterface.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h
index a29859999b..16dbdf0050 100644
--- a/src/validationinterface.h
+++ b/src/validationinterface.h
@@ -60,7 +60,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;