| 2402 | /** Compute the (single) SHA256 of the concatenation of all prevouts of a tx. */ |
| 2403 | template <class T> |
| 2404 | uint256 GetPrevoutsSHA256(const T& txTo) |
| 2405 | { |
| 2406 | CHashWriter ss(SER_GETHASH, 0); |
| 2407 | for (const auto& txin : txTo.vin) { |
| 2408 | ss << txin.prevout; |
| 2409 | } |
| 2410 | return ss.GetSHA256(); |
| 2411 | } |
| 2412 | |
| 2413 | /** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */ |
| 2414 | template <class T> |
no test coverage detected