234 | + pushdata2.push_back(OP_EQUAL);
235 | + BOOST_CHECK(!CScript(pushdata2.begin(), pushdata2.end()).IsPayToScriptHash());
236 | + std::vector<unsigned char> pushdata4 = {OP_HASH160, 20, 0, 0, 0};
237 | + pushdata4.insert(pushdata4.end(), 20, 0);
238 | + pushdata4.push_back(OP_EQUAL);
239 | + BOOST_CHECK(!CScript(pushdata4.begin(), pushdata4.end()).IsPayToScriptHash());
Meh, I'd prefer if this was dropped from this pull request. Could create a separate pull request later if you feel strongly.
I do not feel particularly strongly, but I think it is clearly an improvement in readability. Since it is mostly unrelated to this change (except that it is the same kind of test), I put it into a separate commit. But I'm happy to remove it from here and perhaps submit separately if the community thinks that's what we should do.