Make CWalletTx::pwallet private

This commit is contained in:
Pieter Wuille
2011-06-28 23:45:22 +02:00
committed by Pieter Wuille
parent 8214620178
commit 4c6e22953e
3 changed files with 12 additions and 5 deletions

View File

@@ -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())