| 2413 | /** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */ |
| 2414 | template <class T> |
| 2415 | uint256 GetSequencesSHA256(const T& txTo) |
| 2416 | { |
| 2417 | CHashWriter ss(SER_GETHASH, 0); |
| 2418 | for (const auto& txin : txTo.vin) { |
| 2419 | ss << txin.nSequence; |
| 2420 | } |
| 2421 | return ss.GetSHA256(); |
| 2422 | } |
| 2423 | |
| 2424 | /** Compute the (single) SHA256 of the concatenation of all issuances of a tx. */ |
| 2425 | // Used for segwitv0/taproot sighash calculation |
no test coverage detected