@@ -368,7 +368,7 @@ class CWalletTx
368
368
369
369
CTransactionRef tx;
370
370
371
- /* New transactions start as UNCONFIRMED. At BlockConnected,
371
+ /* * New transactions start as UNCONFIRMED. At BlockConnected,
372
372
* they will transition to CONFIRMED. In case of reorg, at BlockDisconnected,
373
373
* they roll back to UNCONFIRMED. If we detect a conflicting transaction at
374
374
* block connection, we update conflicted tx and its dependencies as CONFLICTED.
@@ -383,7 +383,7 @@ class CWalletTx
383
383
ABANDONED
384
384
};
385
385
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}
387
387
* at which tx has been confirmed. All three are set to 0 if tx is unconfirmed or abandoned.
388
388
* Meaning of these fields changes with CONFLICTED state where they instead point to block hash
389
389
* and block height of the deepest conflicting tx.
@@ -481,7 +481,7 @@ class CWalletTx
481
481
CAmount GetImmatureWatchOnlyCredit (const bool fUseCache = true ) const ;
482
482
CAmount GetChange () const ;
483
483
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 */
485
485
int GetSpendSize (unsigned int out, bool use_max_sig = false ) const
486
486
{
487
487
return CalculateMaximumSignedInputSize (tx->vout [out], pwallet, use_max_sig);
@@ -495,15 +495,15 @@ class CWalletTx
495
495
return (GetDebit (filter) > 0 );
496
496
}
497
497
498
- // True if only scriptSigs are different
498
+ /* * True if only scriptSigs are different */
499
499
bool IsEquivalentTo (const CWalletTx& tx) const ;
500
500
501
501
bool InMempool () const ;
502
502
bool IsTrusted () const ;
503
503
504
504
int64_t GetTxTime () const ;
505
505
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 */
507
507
bool SubmitMemoryPoolAndRelay (std::string& err_string, bool relay);
508
508
509
509
// TODO: Remove "NO_THREAD_SAFETY_ANALYSIS" and replace it with the correct
@@ -613,7 +613,7 @@ struct CoinSelectionParams
613
613
CFeeRate m_long_term_feerate;
614
614
CFeeRate m_discard_feerate;
615
615
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 */
617
617
bool m_subtract_fee_outputs = false ;
618
618
bool m_avoid_partial_spends = false ;
619
619
@@ -682,10 +682,10 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
682
682
*/
683
683
bool AddToWalletIfInvolvingMe (const CTransactionRef& tx, CWalletTx::Confirmation confirm, bool fUpdate ) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
684
684
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. */
686
686
void MarkConflicted (const uint256& hashBlock, int conflicting_height, const uint256& hashTx);
687
687
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 */
689
689
void MarkInputsDirty (const CTransactionRef& tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
690
690
691
691
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
722
722
*/
723
723
uint256 m_last_block_processed GUARDED_BY (cs_wallet);
724
724
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
726
726
* without relying on Chain interface beyond asynchronous updates. For safety, we
727
727
* initialize it to -1. Height is a pointer on node's tip and doesn't imply
728
728
* 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
739
739
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);
740
740
741
741
public:
742
- /*
742
+ /* *
743
743
* Main wallet lock.
744
744
* This lock protects all the fields added by CWallet.
745
745
*/
@@ -956,9 +956,9 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
956
956
* calling CreateTransaction();
957
957
*/
958
958
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. */
960
960
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. */
962
962
bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , std::string>& input_errors) const ;
963
963
SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const ;
964
964
@@ -1333,10 +1333,10 @@ class WalletRescanReserver
1333
1333
}
1334
1334
};
1335
1335
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). */
1340
1340
std::pair<int64_t , int64_t > CalculateMaximumSignedTxSize (const CTransaction &tx, const CWallet *wallet, bool use_max_sig = false ) EXCLUSIVE_LOCKS_REQUIRED(wallet->cs_wallet);
1341
1341
std::pair<int64_t , int64_t > CalculateMaximumSignedTxSize (const CTransaction &tx, const CWallet *wallet, const std::vector<CTxOut>& txouts, bool use_max_sig = false );
1342
1342
0 commit comments