MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / rejectBlock

Method rejectBlock

src/blockprocessor.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void BlockProcessor::rejectBlock(
14 const uint256& block, const std::string& reason, int misbehave)
15{
16 LogPrintf("rejecting %s from peer=%d - %s\n",
17 netcmd, from.id, reason);
18
19 from.PushMessage("reject", netcmd, REJECT_MALFORMED, reason, block);
20
21 this->misbehave(misbehave);
22 worker.stopWork(block);
23}
24
25CBlockIndex* BlockProcessor::processHeader(const CBlockHeader& header, bool maybeAnnouncement) {
26

Callers

nothing calls this directly

Calls 3

misbehaveMethod · 0.95
PushMessageMethod · 0.80
stopWorkMethod · 0.45

Tested by

no test coverage detected