Output size checks
BIP-110 adds one small transaction-output gate, then runs it from contextual input validation when the deployment is active.
note
line 167
Guard the empty script case
The first opcode is read only after the script is known to contain at least one byte.
note
line 168
Pick the limit by output type
Ordinary outputs use the 34-byte script limit. OP_RETURN gets the separate 83-byte limit.
note
line 184
Run only when requested
The check is behind CheckTxInputsRules so inactive deployments do not change validation.