Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
transaction.cpp
Go to the documentation of this file.
1// Copyright (c) 2021 The Bitcoin 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
6
10 for (auto &txin : tx1.vin) {
11 txin.scriptSig = CScript();
12 }
13
14 for (auto &txin : tx2.vin) {
15 txin.scriptSig = CScript();
16 }
17
18 return CTransaction(tx1) == CTransaction(tx2);
19}
20
22 return fInMempool;
23}
24
27 return n ? n : nTimeReceived;
28}
A mutable version of CTransaction.
Serialized script, used inside transaction inputs and outputs.
Definition script.h:431
The basic transaction that is broadcasted on the network and contained in blocks.
A transaction with a bunch of additional info that only the owner cares about.
Definition transaction.h:65
CTransactionRef tx
unsigned int nTimeSmart
Stable timestamp that never changes, and reflects the order a transaction was added to the wallet.
bool IsEquivalentTo(const CWalletTx &tx) const
int64_t GetTxTime() const
bool fInMempool
bool InMempool() const
unsigned int nTimeReceived
time received by this node
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85