CTransactionSignatureSerializer()
scans OP_CODESEPARATOR
twice. First time to count the number of OP_CODESEPARATOR
, second time to remove OP_CODESEPARATOR
. If OP_CODESEPARATOR
is not found in the first scan, the second scan is redundant.
Since the use of OP_CODESEPARATOR
is extremely rare, the repeated scan is wasteful is most cases.