mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +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 bool fInMempool;
|
||||||
mutable CAmount nChangeCached;
|
mutable CAmount nChangeCached;
|
||||||
|
|
||||||
CWalletTx(const CWallet* pwalletIn, CTransactionRef arg)
|
CWalletTx(const CWallet* wallet, CTransactionRef arg)
|
||||||
: tx(std::move(arg))
|
: pwallet(wallet),
|
||||||
|
tx(std::move(arg))
|
||||||
{
|
{
|
||||||
Init(pwalletIn);
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init(const CWallet* pwalletIn)
|
void Init()
|
||||||
{
|
{
|
||||||
pwallet = pwalletIn;
|
|
||||||
mapValue.clear();
|
mapValue.clear();
|
||||||
vOrderForm.clear();
|
vOrderForm.clear();
|
||||||
fTimeReceivedIsTxTime = false;
|
fTimeReceivedIsTxTime = false;
|
||||||
|
@ -414,7 +414,7 @@ public:
|
||||||
template<typename Stream>
|
template<typename Stream>
|
||||||
void Unserialize(Stream& s)
|
void Unserialize(Stream& s)
|
||||||
{
|
{
|
||||||
Init(nullptr);
|
Init();
|
||||||
|
|
||||||
std::vector<uint256> dummy_vector1; //!< Used to be vMerkleBranch
|
std::vector<uint256> dummy_vector1; //!< Used to be vMerkleBranch
|
||||||
std::vector<CMerkleTx> dummy_vector2; //!< Used to be vtxPrev
|
std::vector<CMerkleTx> dummy_vector2; //!< Used to be vtxPrev
|
||||||
|
|
Loading…
Add table
Reference in a new issue