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 : }