| 1378 | /** Compute the (single) SHA256 of the concatenation of all txouts of a tx. */ |
| 1379 | template <class T> |
| 1380 | uint256 GetOutputsSHA256(const T& txTo) |
| 1381 | { |
| 1382 | HashWriter ss{}; |
| 1383 | for (const auto& txout : txTo.vout) { |
| 1384 | ss << txout; |
| 1385 | } |
| 1386 | return ss.GetSHA256(); |
| 1387 | } |
| 1388 | |
| 1389 | /** Compute the (single) SHA256 of the concatenation of all amounts spent by a tx. */ |
| 1390 | uint256 GetSpentAmountsSHA256(const std::vector<CTxOut>& outputs_spent) |
no test coverage detected