From b2fb586decd26ad272b96802fc8ad6fbf6873a3b Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 20 Sep 2017 11:09:45 +0200 Subject: [PATCH] Add missing comments to ProcessNewBlock and ProcessNewBlockHeaders Lost while backporting #9183 --- src/validation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/validation.h b/src/validation.h index 3218b83f9..c0d7e1f0f 100644 --- a/src/validation.h +++ b/src/validation.h @@ -234,6 +234,8 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 945 * 1024 * 1024; * Note that we guarantee that either the proof-of-work is valid on pblock, or * (and possibly also) BlockChecked will have been called. * + * Call without cs_main held. + * * @param[in] pblock The block we want to process. * @param[in] fForceProcessing Process this block even if unrequested; used for non-network block sources and whitelisted peers. * @param[out] dbp The already known disk position of pblock, or NULL if not yet stored. @@ -245,6 +247,8 @@ bool ProcessNewBlock(const CChainParams& chainparams, const CBlock* pblock, bool /** * Process incoming block headers. * + * Call without cs_main held. + * * @param[in] block The block headers themselves * @param[out] state This may be set to an Error state if any error occurred processing them * @param[in] chainparams The params for the chain we want to connect to