Skip to content

Commit c4a6929

Browse files
committed
Clarify assumptions made about when BlockCheck is called
1 parent d4781ac commit c4a6929

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/validationinterface.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ struct CMainSignals {
6060
boost::signals2::signal<void (const uint256 &)> Inventory;
6161
/** Tells listeners to broadcast their data. */
6262
boost::signals2::signal<void (int64_t nBestBlockTime, CConnman* connman)> Broadcast;
63-
/** Notifies listeners of a block validation result */
63+
/**
64+
* Notifies listeners of a block validation result.
65+
* If the provided CValidationState IsValid, the provided block
66+
* is guaranteed to be the current best block at the time the
67+
* callback was generated (not necessarily now)
68+
*/
6469
boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked;
6570
/** Notifies listeners that a key for mining is required (coinbase) */
6671
boost::signals2::signal<void (boost::shared_ptr<CReserveScript>&)> ScriptForMining;

0 commit comments

Comments
 (0)