Return the TxoutType of a script without exposing Solver details. */
| 1159 | |
| 1160 | /** Return the TxoutType of a script without exposing Solver details. */ |
| 1161 | static TxoutType GetTxoutType(const CScript& output_script) |
| 1162 | { |
| 1163 | std::vector<std::vector<uint8_t>> unused; |
| 1164 | return Solver(output_script, unused); |
| 1165 | } |
| 1166 | |
| 1167 | #define CHECK_SCRIPT_STATIC_SIZE(script, expected_size) \ |
| 1168 | do { \ |
no test coverage detected