From 7c4f0091957d305679546fde592ffa2de2d186fe Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Wed, 20 Sep 2017 16:04:05 -0400 Subject: [trivial] Rename feebumper variables according to project code style Future PRs will completely refactor this translation unit and touch all this code so we rename the variables to follow project stlye guidelines in this preparation commit. Don't use m_ prefixes for member variables since we're going to remove the class entirely in the next commits. --- src/wallet/feebumper.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/wallet/feebumper.h') diff --git a/src/wallet/feebumper.h b/src/wallet/feebumper.h index 3d64e53c15..8daf80367f 100644 --- a/src/wallet/feebumper.h +++ b/src/wallet/feebumper.h @@ -23,39 +23,39 @@ enum class BumpFeeResult MISC_ERROR, }; -class CFeeBumper +class FeeBumper { public: - CFeeBumper(const CWallet *pWalletIn, const uint256 txidIn, const CCoinControl& coin_control, CAmount totalFee); - BumpFeeResult getResult() const { return currentResult; } - const std::vector& getErrors() const { return vErrors; } - CAmount getOldFee() const { return nOldFee; } - CAmount getNewFee() const { return nNewFee; } - uint256 getBumpedTxId() const { return bumpedTxid; } + FeeBumper(const CWallet *wallet, const uint256 txid_in, const CCoinControl& coin_control, CAmount total_fee); + BumpFeeResult getResult() const { return current_result; } + const std::vector& getErrors() const { return errors; } + CAmount getOldFee() const { return old_fee; } + CAmount getNewFee() const { return new_fee; } + uint256 getBumpedTxId() const { return bumped_txid; } /* signs the new transaction, * returns false if the tx couldn't be found or if it was * impossible to create the signature(s) */ - bool signTransaction(CWallet *pWallet); + bool signTransaction(CWallet *wallet); /* commits the fee bump, * returns true, in case of CWallet::CommitTransaction was successful - * but, eventually sets vErrors if the tx could not be added to the mempool (will try later) + * but, eventually sets errors if the tx could not be added to the mempool (will try later) * or if the old transaction could not be marked as replaced */ - bool commit(CWallet *pWalletNonConst); + bool commit(CWallet *wallet); private: - bool preconditionChecks(const CWallet *pWallet, const CWalletTx& wtx); + bool preconditionChecks(const CWallet *wallet, const CWalletTx& wtx); const uint256 txid; - uint256 bumpedTxid; + uint256 bumped_txid; CMutableTransaction mtx; - std::vector vErrors; - BumpFeeResult currentResult; - CAmount nOldFee; - CAmount nNewFee; + std::vector errors; + BumpFeeResult current_result; + CAmount old_fee; + CAmount new_fee; }; #endif // BITCOIN_WALLET_FEEBUMPER_H -- cgit v1.2.3