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