diff options
| author | Pieter Wuille <[email protected]> | 2011-06-28 23:45:22 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2011-12-17 21:49:47 +0100 |
| commit | 4c6e22953ef8ae0764576993088ec83d729d18f8 (patch) | |
| tree | 5b0bb2ee0b7226e4721dc6a98ad6144f15926262 /src/wallet.h | |
| parent | Merge pull request #704 from TheBlueMatt/master (diff) | |
| download | discoin-4c6e22953ef8ae0764576993088ec83d729d18f8.tar.xz discoin-4c6e22953ef8ae0764576993088ec83d729d18f8.zip | |
Make CWalletTx::pwallet private
Diffstat (limited to 'src/wallet.h')
| -rw-r--r-- | src/wallet.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h index ca7cf6731..e1c39a6f3 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -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()) |