| 51 | } |
| 52 | |
| 53 | CMutableTransaction TxFromHex(const std::string& str) |
| 54 | { |
| 55 | CMutableTransaction tx; |
| 56 | try { |
| 57 | SpanReader{SER_DISK, SERIALIZE_TRANSACTION_NO_WITNESS, CheckedParseHex(str)} >> tx; |
| 58 | } catch (const std::ios_base::failure&) { |
| 59 | throw std::runtime_error("Tx deserialization failure"); |
| 60 | } |
| 61 | return tx; |
| 62 | } |
| 63 | |
| 64 | std::vector<CTxOut> TxOutsFromJSON(const UniValue& univalue) |
| 65 | { |
no test coverage detected