mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
Get rid of unneeded CWalletTx::Init parameter
This commit is contained in:
parent
2b9cba2065
commit
bd2fbc7cdb
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue