mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Make CWalletTx::pwallet private
This commit is contained in:
committed by
Pieter Wuille
parent
8214620178
commit
4c6e22953e
@@ -243,9 +243,10 @@ public:
|
||||
//
|
||||
class CWalletTx : public CMerkleTx
|
||||
{
|
||||
public:
|
||||
private:
|
||||
const CWallet* pwallet;
|
||||
|
||||
public:
|
||||
std::vector<CMerkleTx> vtxPrev;
|
||||
std::map<std::string, std::string> mapValue;
|
||||
std::vector<std::pair<std::string, std::string> > vOrderForm;
|
||||
@@ -389,6 +390,12 @@ public:
|
||||
fChangeCached = false;
|
||||
}
|
||||
|
||||
void BindWallet(CWallet *pwalletIn)
|
||||
{
|
||||
pwallet = pwalletIn;
|
||||
MarkDirty();
|
||||
}
|
||||
|
||||
void MarkSpent(unsigned int nOut)
|
||||
{
|
||||
if (nOut >= vout.size())
|
||||
|
||||
Reference in New Issue
Block a user