| 137 | /** Compute the outpoint flag(u8) for a given txin **/ |
| 138 | template <class T> |
| 139 | inline unsigned char GetOutpointFlag(const T& txin) |
| 140 | { |
| 141 | return static_cast<unsigned char> ((!txin.assetIssuance.IsNull() ? (COutPoint::OUTPOINT_ISSUANCE_FLAG >> 24) : 0) | |
| 142 | (txin.m_is_pegin ? (COutPoint::OUTPOINT_PEGIN_FLAG >> 24) : 0)); |
| 143 | } |
| 144 | |
| 145 | bool static IsCompressedOrUncompressedPubKey(const valtype &vchPubKey) { |
| 146 | if (vchPubKey.size() < CPubKey::COMPRESSED_SIZE) { |
no test coverage detected