| 11 | } |
| 12 | |
| 13 | void 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 | |
| 25 | CBlockIndex* BlockProcessor::processHeader(const CBlockHeader& header, bool maybeAnnouncement) { |
| 26 |
nothing calls this directly
no test coverage detected