MCPcopy 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
8bool HaveBlockData(const uint256& hash) {
9 return mapBlockIndex.count(hash)
10 && mapBlockIndex.find(hash)->second->nStatus & BLOCK_HAVE_DATA;
11}
12
13namespace {
14

Callers 1

setToWorkMethod · 0.85

Calls 2

countMethod · 0.80
findMethod · 0.80

Tested by

no test coverage detected