16 for (
auto& txin : tx1.vin) txin.scriptSig =
CScript();
17 for (
auto& txin : tx2.vin) txin.scriptSig =
CScript();
23 return state<TxStateInMempool>();
46 if (
auto* conf = state<TxStateConfirmed>()) {
47 lookup_block(conf->confirmed_block_hash, conf->confirmed_block_height,
m_state);
48 }
else if (
auto* conf = state<TxStateBlockConflicted>()) {
49 lookup_block(conf->conflicting_block_hash, conf->conflicting_block_height,
m_state);
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks.
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
virtual bool findBlock(const uint256 &hash, const FoundBlock &block={})=0
Return whether node has the block and optionally return block metadata or contents.
Helper for findBlock to selectively return pieces of block data.
A transaction with a bunch of additional info that only the owner cares about.
bool IsEquivalentTo(const CWalletTx &tx) const
True if only scriptSigs are different.
void updateState(interfaces::Chain &chain)
Update transaction state when attaching to a chain, filling in heights of conflicted and confirmed bl...
void CopyFrom(const CWalletTx &)
unsigned int nTimeReceived
time received by this node
int64_t GetTxTime() const
unsigned int nTimeSmart
Stable timestamp that never changes, and reflects the order a transaction was added to the wallet.
std::variant< TxStateConfirmed, TxStateInMempool, TxStateBlockConflicted, TxStateInactive, TxStateUnrecognized > TxState
All possible CWalletTx states.
A mutable version of CTransaction.
State of transaction not confirmed or conflicting with a known block and not in the mempool.