We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 962f7f0 commit 73666adCopy full SHA for 73666ad
src/validation.cpp
@@ -2388,6 +2388,11 @@ static void NotifyHeaderTip() {
2388
* that is already loaded (to avoid loading it again from disk).
2389
*/
2390
bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams, std::shared_ptr<const CBlock> pblock) {
2391
+ // Note that while we're often called here from ProcessNewBlock, this is
2392
+ // far from a guarantee. Things in the P2P/RPC will often end up calling
2393
+ // us in the middle of ProcessNewBlock - do not assume pblock is set
2394
+ // sanely for performance or correctness!
2395
+
2396
CBlockIndex *pindexMostWork = NULL;
2397
CBlockIndex *pindexNewTip = NULL;
2398
do {
0 commit comments