@@ -233,7 +233,8 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 1024 * 1024;
233
233
* Note that we guarantee that either the proof-of-work is valid on pblock, or
234
234
* (and possibly also) BlockChecked will have been called.
235
235
*
236
- * Call without cs_main held.
236
+ * May not be called with cs_main held. May not be called in a
237
+ * validationinterface callback.
237
238
*
238
239
* @param[in] pblock The block we want to process.
239
240
* @param[in] fForceProcessing Process this block even if unrequested; used for non-network block sources and whitelisted peers.
@@ -245,7 +246,8 @@ bool ProcessNewBlock(const CChainParams& chainparams, const std::shared_ptr<cons
245
246
/* *
246
247
* Process incoming block headers.
247
248
*
248
- * Call without cs_main held.
249
+ * May not be called with cs_main held. May not be called in a
250
+ * validationinterface callback.
249
251
*
250
252
* @param[in] block The block headers themselves
251
253
* @param[out] state This may be set to an Error state if any error occurred processing them
@@ -278,7 +280,12 @@ void ThreadScriptCheck();
278
280
bool IsInitialBlockDownload ();
279
281
/* * Retrieve a transaction (from memory pool, or from disk, if possible) */
280
282
bool GetTransaction (const uint256& hash, CTransactionRef& tx, const Consensus::Params& params, uint256& hashBlock, bool fAllowSlow = false , CBlockIndex* blockIndex = nullptr );
281
- /* * Find the best known block, and make it the tip of the block chain */
283
+ /* *
284
+ * Find the best known block, and make it the tip of the block chain
285
+ *
286
+ * May not be called with cs_main held. May not be called in a
287
+ * validationinterface callback.
288
+ */
282
289
bool ActivateBestChain (CValidationState& state, const CChainParams& chainparams, std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>());
283
290
CAmount GetBlockSubsidy (int nHeight, const Consensus::Params& consensusParams);
284
291
@@ -445,7 +452,11 @@ inline CBlockIndex* LookupBlockIndex(const uint256& hash)
445
452
/* * Find the last common block between the parameter chain and a locator. */
446
453
CBlockIndex* FindForkInGlobalIndex (const CChain& chain, const CBlockLocator& locator);
447
454
448
- /* * Mark a block as precious and reorganize. */
455
+ /* * Mark a block as precious and reorganize.
456
+ *
457
+ * May not be called with cs_main held. May not be called in a
458
+ * validationinterface callback.
459
+ */
449
460
bool PreciousBlock (CValidationState& state, const CChainParams& params, CBlockIndex *pindex);
450
461
451
462
/* * Mark a block as invalid. */
0 commit comments