Skip to content

Commit 0c74716

Browse files
glozowmurchandamus
andcommitted
[docs] format existing comments as doxygen
Co-authored-by: Xekyo <[email protected]>
1 parent 4b5659c commit 0c74716

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/wallet/wallet.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class CWalletTx
368368

369369
CTransactionRef tx;
370370

371-
/* New transactions start as UNCONFIRMED. At BlockConnected,
371+
/** New transactions start as UNCONFIRMED. At BlockConnected,
372372
* they will transition to CONFIRMED. In case of reorg, at BlockDisconnected,
373373
* they roll back to UNCONFIRMED. If we detect a conflicting transaction at
374374
* block connection, we update conflicted tx and its dependencies as CONFLICTED.
@@ -383,7 +383,7 @@ class CWalletTx
383383
ABANDONED
384384
};
385385

386-
/* Confirmation includes tx status and a triplet of {block height/block hash/tx index in block}
386+
/** Confirmation includes tx status and a triplet of {block height/block hash/tx index in block}
387387
* at which tx has been confirmed. All three are set to 0 if tx is unconfirmed or abandoned.
388388
* Meaning of these fields changes with CONFLICTED state where they instead point to block hash
389389
* and block height of the deepest conflicting tx.
@@ -481,7 +481,7 @@ class CWalletTx
481481
CAmount GetImmatureWatchOnlyCredit(const bool fUseCache = true) const;
482482
CAmount GetChange() const;
483483

484-
// Get the marginal bytes if spending the specified output from this transaction
484+
/** Get the marginal bytes if spending the specified output from this transaction */
485485
int GetSpendSize(unsigned int out, bool use_max_sig = false) const
486486
{
487487
return CalculateMaximumSignedInputSize(tx->vout[out], pwallet, use_max_sig);
@@ -495,15 +495,15 @@ class CWalletTx
495495
return (GetDebit(filter) > 0);
496496
}
497497

498-
// True if only scriptSigs are different
498+
/** True if only scriptSigs are different */
499499
bool IsEquivalentTo(const CWalletTx& tx) const;
500500

501501
bool InMempool() const;
502502
bool IsTrusted() const;
503503

504504
int64_t GetTxTime() const;
505505

506-
// Pass this transaction to node for mempool insertion and relay to peers if flag set to true
506+
/** Pass this transaction to node for mempool insertion and relay to peers if flag set to true */
507507
bool SubmitMemoryPoolAndRelay(std::string& err_string, bool relay);
508508

509509
// TODO: Remove "NO_THREAD_SAFETY_ANALYSIS" and replace it with the correct
@@ -613,7 +613,7 @@ struct CoinSelectionParams
613613
CFeeRate m_long_term_feerate;
614614
CFeeRate m_discard_feerate;
615615
size_t tx_noinputs_size = 0;
616-
//! Indicate that we are subtracting the fee from outputs
616+
/** Indicate that we are subtracting the fee from outputs */
617617
bool m_subtract_fee_outputs = false;
618618
bool m_avoid_partial_spends = false;
619619

@@ -682,10 +682,10 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
682682
*/
683683
bool AddToWalletIfInvolvingMe(const CTransactionRef& tx, CWalletTx::Confirmation confirm, bool fUpdate) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
684684

685-
/* Mark a transaction (and its in-wallet descendants) as conflicting with a particular block. */
685+
/** Mark a transaction (and its in-wallet descendants) as conflicting with a particular block. */
686686
void MarkConflicted(const uint256& hashBlock, int conflicting_height, const uint256& hashTx);
687687

688-
/* Mark a transaction's inputs dirty, thus forcing the outputs to be recomputed */
688+
/** Mark a transaction's inputs dirty, thus forcing the outputs to be recomputed */
689689
void MarkInputsDirty(const CTransactionRef& tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
690690

691691
void SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator>) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
@@ -722,7 +722,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
722722
*/
723723
uint256 m_last_block_processed GUARDED_BY(cs_wallet);
724724

725-
/* Height of last block processed is used by wallet to know depth of transactions
725+
/** Height of last block processed is used by wallet to know depth of transactions
726726
* without relying on Chain interface beyond asynchronous updates. For safety, we
727727
* initialize it to -1. Height is a pointer on node's tip and doesn't imply
728728
* that the wallet has scanned sequentially all blocks up to this one.
@@ -739,7 +739,7 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
739739
bool CreateTransactionInternal(const std::vector<CRecipient>& vecSend, CTransactionRef& tx, CAmount& nFeeRet, int& nChangePosInOut, bilingual_str& error, const CCoinControl& coin_control, FeeCalculation& fee_calc_out, bool sign);
740740

741741
public:
742-
/*
742+
/**
743743
* Main wallet lock.
744744
* This lock protects all the fields added by CWallet.
745745
*/
@@ -956,9 +956,9 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
956956
* calling CreateTransaction();
957957
*/
958958
bool FundTransaction(CMutableTransaction& tx, CAmount& nFeeRet, int& nChangePosInOut, bilingual_str& error, bool lockUnspents, const std::set<int>& setSubtractFeeFromOutputs, CCoinControl);
959-
// Fetch the inputs and sign with SIGHASH_ALL.
959+
/** Fetch the inputs and sign with SIGHASH_ALL. */
960960
bool SignTransaction(CMutableTransaction& tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
961-
// Sign the tx given the input coins and sighash.
961+
/** Sign the tx given the input coins and sighash. */
962962
bool SignTransaction(CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, std::string>& input_errors) const;
963963
SigningResult SignMessage(const std::string& message, const PKHash& pkhash, std::string& str_sig) const;
964964

@@ -1333,10 +1333,10 @@ class WalletRescanReserver
13331333
}
13341334
};
13351335

1336-
// Calculate the size of the transaction assuming all signatures are max size
1337-
// Use DummySignatureCreator, which inserts 71 byte signatures everywhere.
1338-
// NOTE: this requires that all inputs must be in mapWallet (eg the tx should
1339-
// be IsAllFromMe).
1336+
/** Calculate the size of the transaction assuming all signatures are max size
1337+
* Use DummySignatureCreator, which inserts 71 byte signatures everywhere.
1338+
* NOTE: this requires that all inputs must be in mapWallet (eg the tx should
1339+
* be IsAllFromMe). */
13401340
std::pair<int64_t, int64_t> CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *wallet, bool use_max_sig = false) EXCLUSIVE_LOCKS_REQUIRED(wallet->cs_wallet);
13411341
std::pair<int64_t, int64_t> CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *wallet, const std::vector<CTxOut>& txouts, bool use_max_sig = false);
13421342

0 commit comments

Comments
 (0)