Output size checks
BIP-110 checks that each transaction output stays small enough, but only after the rule has turned on.
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.