aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorjosibake <josibake@protonmail.com>2022-08-10 14:35:53 +0200
committerjosibake <josibake@protonmail.com>2022-08-10 15:19:31 +0200
commitb6b50b0f2b055d81c5d4ff9e21dd88cdc9a88ccb (patch)
treec7da890860db1c1009396afd7821b0efecf19589 /src/wallet/spend.h
parent3f27a2adce12c6b0e7b43ba7c024331657bcf335 (diff)
downloadbitcoin-b6b50b0f2b055d81c5d4ff9e21dd88cdc9a88ccb.tar.xz
scripted-diff: Uppercase function names
Change `CoinsResult` functions to uppercase to be consistent with the style guide. -BEGIN VERIFY SCRIPT- git grep -l "available_coins" | grep -v mempool_stress.cpp | xargs sed -i "s/available_coins\.\(size\|all\|clear\)/available_coins\.\u\1/" git grep -l AvailableCoins | xargs sed -i "/AvailableCoins/ s/\(all()\|size()\|clear()\)/\u\1/" sed -i "s/\(clear()\|all()\|size()\)/\u&/g" src/wallet/spend.h sed -i "/CoinsResult::/ s/\(clear()\|all()\|size()\)/\u&/" src/wallet/spend.cpp sed -i "s/result.size/result.Size/" src/wallet/spend.cpp sed -i "s/this->size/this->Size/" src/wallet/spend.cpp -END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r--src/wallet/spend.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h
index dea5e7c65f..e11a126cda 100644
--- a/src/wallet/spend.h
+++ b/src/wallet/spend.h
@@ -34,7 +34,7 @@ TxSize CalculateMaximumSignedTxSize(const CTransaction& tx, const CWallet* walle
* This struct is really just a wrapper around OutputType vectors with a convenient
* method for concatenating and returning all COutputs as one vector.
*
- * clear(), size() methods are implemented so that one can interact with
+ * Clear(), Size() methods are implemented so that one can interact with
* the CoinsResult struct as if it was a vector
*/
struct CoinsResult {
@@ -49,12 +49,12 @@ struct CoinsResult {
std::vector<COutput> other;
/** Concatenate and return all COutputs as one vector */
- std::vector<COutput> all() const;
+ std::vector<COutput> All() const;
/** The following methods are provided so that CoinsResult can mimic a vector,
* i.e., methods can work with individual OutputType vectors or on the entire object */
- uint64_t size() const;
- void clear();
+ uint64_t Size() const;
+ void Clear();
void Erase(std::set<COutPoint>& preset_coins);
void Shuffle(FastRandomContext& rng_fast);
void Add(OutputType type, const COutput& out);