| 64 | } |
| 65 | |
| 66 | bool CScriptView::IsPayToScriptHash() const { |
| 67 | // Extra-fast test for pay-to-script-hash CScripts: |
| 68 | return (this->size() == 23 && |
| 69 | (*this)[0] == OP_HASH160 && |
| 70 | (*this)[1] == 0x14 && |
| 71 | (*this)[22] == OP_EQUAL); |
| 72 | } |
| 73 | |
| 74 | bool CScriptView::IsPayToWitnessScriptHash() const { |
| 75 | // Extra-fast test for pay-to-witness-script-hash CScripts: |
no test coverage detected