mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
097a8e7196
that's a result of: contrib/devtools/copyright_header.py update ./ it is not scripted diff, because it works differentlly on my localhost and in CI: CI doesn't want to use git commit date which is mocked to 30th Dec of 2023
18 lines
461 B
C++
18 lines
461 B
C++
// Copyright (c) 2018-2023 The Dash Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <evo/specialtx.h>
|
|
|
|
#include <clientversion.h>
|
|
#include <hash.h>
|
|
|
|
uint256 CalcTxInputsHash(const CTransaction& tx)
|
|
{
|
|
CHashWriter hw(SER_GETHASH, CLIENT_VERSION);
|
|
for (const auto& in : tx.vin) {
|
|
hw << in.prevout;
|
|
}
|
|
return hw.GetHash();
|
|
}
|