| 1356 | /** Compute the (single) SHA256 of the concatenation of all prevouts of a tx. */ |
| 1357 | template <class T> |
| 1358 | uint256 GetPrevoutsSHA256(const T& txTo) |
| 1359 | { |
| 1360 | HashWriter ss{}; |
| 1361 | for (const auto& txin : txTo.vin) { |
| 1362 | ss << txin.prevout; |
| 1363 | } |
| 1364 | return ss.GetSHA256(); |
| 1365 | } |
| 1366 | |
| 1367 | /** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */ |
| 1368 | template <class T> |
no test coverage detected