aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-11-20 12:49:26 -0500
committerRussell Yanofsky <russ@yanofsky.org>2020-05-01 05:59:09 -0500
commitbd2fbc7cdbec46400341209f4cb7e69e5b2cee19 (patch)
tree79367858dc9bbc847f8304df49cdbe4dce317dfe /src/wallet
parent2b9cba206594bfbcefcef0c88a0bf793819643bd (diff)
Get rid of unneeded CWalletTx::Init parameter
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index b1ae975bd8..39f5e304ae 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -338,15 +338,15 @@ public:
mutable bool fInMempool;
mutable CAmount nChangeCached;
- CWalletTx(const CWallet* pwalletIn, CTransactionRef arg)
- : tx(std::move(arg))
+ CWalletTx(const CWallet* wallet, CTransactionRef arg)
+ : pwallet(wallet),
+ tx(std::move(arg))
{
- Init(pwalletIn);
+ Init();
}
- void Init(const CWallet* pwalletIn)
+ void Init()
{
- pwallet = pwalletIn;
mapValue.clear();
vOrderForm.clear();
fTimeReceivedIsTxTime = false;
@@ -414,7 +414,7 @@ public:
template<typename Stream>
void Unserialize(Stream& s)
{
- Init(nullptr);
+ Init();
std::vector<uint256> dummy_vector1; //!< Used to be vMerkleBranch
std::vector<CMerkleTx> dummy_vector2; //!< Used to be vtxPrev