1142 | @@ -1142,60 +1143,70 @@ void static ProcessGetBlockData(CNode* pfrom, const Consensus::Params& consensus
1143 | std::shared_ptr<const CBlock> pblock;
1144 | if (a_recent_block && a_recent_block->GetHash() == pindex->GetBlockHash()) {
1145 | pblock = a_recent_block;
1146 | + } else if (inv.type == MSG_WITNESS_BLOCK) {
1147 | + // Fast-path: in this case it is possible to serve the block directly from disk,
1148 | + // as the network format matches the format on disk
1149 | + std::vector<uint8_t> block_data;
1150 | + if (!ReadRawBlockFromDisk(block_data, pindex, chainparams.MessageStart()))
1151 | + assert(!"cannot load block from disk");
Nit: braces around then-branch if on a separate line.