diff options
| author | Matt Corallo <[email protected]> | 2017-09-30 23:49:59 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-10-13 19:30:15 -0400 |
| commit | 3ea8b75281edc60078423bd5d277cd2a84aa5d33 (patch) | |
| tree | 0db0d4510f04c1bbf1fd4f8a8199415ec67459e9 /src/validationinterface.h | |
| parent | Fix wallet RPC race by waiting for callbacks in sendrawtransaction (diff) | |
| download | discoin-3ea8b75281edc60078423bd5d277cd2a84aa5d33.tar.xz discoin-3ea8b75281edc60078423bd5d277cd2a84aa5d33.zip | |
Give ZMQ consistent order with UpdatedBlockTip on scheduler thread
Note that UpdatedBlockTip is also used in net_processing to
announce new blocks to peers. As this may need additional review,
this change is included in its own commit.
Diffstat (limited to 'src/validationinterface.h')
| -rw-r--r-- | src/validationinterface.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index 9b5ac2ac2..1494c6dc2 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -45,7 +45,11 @@ void CallFunctionInValidationInterfaceQueue(std::function<void ()> func); class CValidationInterface { protected: - /** Notifies listeners of updated block chain tip */ + /** + * Notifies listeners of updated block chain tip + * + * Called on a background thread. + */ virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) {} /** * Notifies listeners of a transaction having been added to mempool. |