| 223 | } |
| 224 | |
| 225 | bool DecodeHexTx(CMutableTransaction& tx, const std::string& hex_tx, bool try_no_witness, bool try_witness) |
| 226 | { |
| 227 | if (!IsHex(hex_tx)) { |
| 228 | return false; |
| 229 | } |
| 230 | |
| 231 | std::vector<unsigned char> txData(ParseHex(hex_tx)); |
| 232 | return DecodeTx(tx, txData, try_no_witness, try_witness); |
| 233 | } |
| 234 | |
| 235 | bool DecodeHexBlockHeader(CBlockHeader& header, const std::string& hex_header) |
| 236 | { |