Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoinxt/bitcoinxt
/ HaveBlockData
Function
HaveBlockData
src/utilprocessmsg.cpp:8–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#include
"nodestate.h"
7
8
bool HaveBlockData(const uint256& hash) {
9
return mapBlockIndex.count(hash)
10
&& mapBlockIndex.find(hash)->second->nStatus & BLOCK_HAVE_DATA;
11
}
12
13
namespace {
14
Callers
1
setToWork
Method · 0.85
Calls
2
count
Method · 0.80
find
Method · 0.80
Tested by
no test coverage detected