Skip to content

Commit 7b585cf

Browse files
committed
Merge #9558: Clarify assumptions made about when BlockCheck is called
c4a6929 Clarify assumptions made about when BlockCheck is called (Matt Corallo) Tree-SHA512: 2eceb0c4f06c7fd6b290b93843bda11a4b63131559c5e8226bfec84596ed4e54ee6d8f5bc9cf789a80675be8b8079cf9234c96032df306258cb2260b9d8c7825
2 parents 86f7d5b + c4a6929 commit 7b585cf

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
@@ -69,7 +69,12 @@ struct CMainSignals {
6969
boost::signals2::signal<void (const uint256 &)> Inventory;
7070
/** Tells listeners to broadcast their data. */
7171
boost::signals2::signal<void (int64_t nBestBlockTime, CConnman* connman)> Broadcast;
72-
/** Notifies listeners of a block validation result */
72+
/**
73+
* Notifies listeners of a block validation result.
74+
* If the provided CValidationState IsValid, the provided block
75+
* is guaranteed to be the current best block at the time the
76+
* callback was generated (not necessarily now)
77+
*/
7378
boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked;
7479
/** Notifies listeners that a key for mining is required (coinbase) */
7580
boost::signals2::signal<void (boost::shared_ptr<CReserveScript>&)> ScriptForMining;

0 commit comments

Comments
 (0)