diff options
author | Matt Corallo <git@bluematt.me> | 2017-12-04 18:31:36 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-12-26 11:54:49 -0500 |
commit | 5a933cefcc5e0595a1ec46fc5ea287aa163ecd3f (patch) | |
tree | 63bcb653e77c838a7e511dcdd6eb1d49cd125c5c /src/validationinterface.cpp | |
parent | a99b76f26958829c2b9ca4ffa5b1d81912b8acc7 (diff) |
Add an interface to get the queue depth out of CValidationInterface
Diffstat (limited to 'src/validationinterface.cpp')
-rw-r--r-- | src/validationinterface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/validationinterface.cpp b/src/validationinterface.cpp index abbd8cc4d2..1ddff4b335 100644 --- a/src/validationinterface.cpp +++ b/src/validationinterface.cpp @@ -54,6 +54,11 @@ void CMainSignals::FlushBackgroundCallbacks() { } } +size_t CMainSignals::CallbacksPending() { + if (!m_internals) return 0; + return m_internals->m_schedulerClient.CallbacksPending(); +} + void CMainSignals::RegisterWithMempoolSignals(CTxMemPool& pool) { pool.NotifyEntryRemoved.connect(boost::bind(&CMainSignals::MempoolEntryRemoved, this, _1, _2)); } |