LCOV - code coverage report
Current view: top level - src/evo - specialtx.cpp (source / functions) Hit Total Coverage
Test: test_dash_coverage.info Lines: 5 5 100.0 %
Date: 2026-06-25 07:23:51 Functions: 1 1 100.0 %

          Line data    Source code
       1             : // Copyright (c) 2018-2023 The Dash Core developers
       2             : // Distributed under the MIT software license, see the accompanying
       3             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4             : 
       5             : #include <evo/specialtx.h>
       6             : 
       7             : #include <clientversion.h>
       8             : #include <hash.h>
       9             : 
      10         126 : uint256 CalcTxInputsHash(const CTransaction& tx)
      11             : {
      12         126 :     CHashWriter hw(SER_GETHASH, CLIENT_VERSION);
      13         417 :     for (const auto& in : tx.vin) {
      14         291 :         hw << in.prevout;
      15             :     }
      16         126 :     return hw.GetHash();
      17             : }

Generated by: LCOV version 1.16