Skip to content

Commit 2c8c57e

Browse files
committed
Document cs_main status when calling into PNB or PNBH
1 parent 58a215c commit 2c8c57e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 1024 * 1024;
223223
* Note that we guarantee that either the proof-of-work is valid on pblock, or
224224
* (and possibly also) BlockChecked will have been called.
225225
*
226+
* Call without cs_main held.
227+
*
226228
* @param[in] pblock The block we want to process.
227229
* @param[in] fForceProcessing Process this block even if unrequested; used for non-network block sources and whitelisted peers.
228230
* @param[out] dbp The already known disk position of pblock, or NULL if not yet stored.
@@ -234,6 +236,8 @@ bool ProcessNewBlock(const CChainParams& chainparams, const CBlock* pblock, bool
234236
/**
235237
* Process incoming block headers.
236238
*
239+
* Call without cs_main held.
240+
*
237241
* @param[in] block The block headers themselves
238242
* @param[out] state This may be set to an Error state if any error occurred processing them
239243
* @param[in] chainparams The params for the chain we want to connect to

0 commit comments

Comments
 (0)