aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-12-01 11:02:23 -0800
committerMatt Corallo <git@bluematt.me>2016-12-01 11:03:32 -0800
commit2c8c57e72fe32cac909278312955145632da6d82 (patch)
treeb482c3537059010db2ca585887a37f656cd642c9 /src
parent58a215ce8c13b900cf982c39f8ee4879290d1a95 (diff)
downloadbitcoin-2c8c57e72fe32cac909278312955145632da6d82.tar.xz
Document cs_main status when calling into PNB or PNBH
Diffstat (limited to 'src')
-rw-r--r--src/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 9fb6b298c4..8f51e33242 100644
--- a/src/main.h
+++ b/src/main.h
@@ -223,6 +223,8 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 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.
@@ -234,6 +236,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