mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Get rid of unneeded CWalletTx::Init parameter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user