| 1367 | /** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */ |
| 1368 | template <class T> |
| 1369 | uint256 GetSequencesSHA256(const T& txTo) |
| 1370 | { |
| 1371 | HashWriter ss{}; |
| 1372 | for (const auto& txin : txTo.vin) { |
| 1373 | ss << txin.nSequence; |
| 1374 | } |
| 1375 | return ss.GetSHA256(); |
| 1376 | } |
| 1377 | |
| 1378 | /** Compute the (single) SHA256 of the concatenation of all txouts of a tx. */ |
| 1379 | template <class T> |
no test coverage detected