| 197 | } |
| 198 | |
| 199 | bool DecodeHexTx(CMutableTransaction& tx, const std::string& hex_tx, bool try_no_witness, bool try_witness) |
| 200 | { |
| 201 | if (!IsHex(hex_tx)) { |
| 202 | return false; |
| 203 | } |
| 204 | |
| 205 | std::vector<unsigned char> txData(ParseHex(hex_tx)); |
| 206 | return DecodeTx(tx, txData, try_no_witness, try_witness); |
| 207 | } |
| 208 | |
| 209 | bool DecodeHexBlockHeader(CBlockHeader& header, const std::string& hex_header) |
| 210 | { |