This is not an issue at all. But inside validation.cpp
some code line might need some clean up. Second block.vtx.empty()
is not needed. Check the code below.
0// Size limits
1 if (block.vtx.empty() || block.vtx.size() * WITNESS_SCALE_FACTOR > MAX_BLOCK_WEIGHT || ::GetSerializeSize(block, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) * WITNESS_SCALE_FACTOR > MAX_BLOCK_WEIGHT)
2 return state.Invalid(BlockValidationResult::BLOCK_CONSENSUS, "bad-blk-length", "size limits failed");
3
4 // First transaction must be coinbase, the rest must not be
5 if (block.vtx.empty() || !block.vtx[0]->IsCoinBase())