diff options
| author | Cozz Lovan <[email protected]> | 2014-05-30 00:54:00 +0200 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-07-15 15:50:33 +0200 |
| commit | 1b4568cb0f00dd7a24575fe54c017e743c4e7d35 (patch) | |
| tree | e84e0945325614794a6a016869dd04c7f7c969ee /src/wallet.h | |
| parent | Merge pull request #4505 (diff) | |
| download | discoin-1b4568cb0f00dd7a24575fe54c017e743c4e7d35.tar.xz discoin-1b4568cb0f00dd7a24575fe54c017e743c4e7d35.zip | |
Add vout to ListTransactions output
Diffstat (limited to 'src/wallet.h')
| -rw-r--r-- | src/wallet.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wallet.h b/src/wallet.h index ab9550a98..eaf9e9630 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -467,6 +467,12 @@ static void WriteOrderPos(const int64_t& nOrderPos, mapValue_t& mapValue) mapValue["n"] = i64tostr(nOrderPos); } +struct COutputEntry +{ + CTxDestination destination; + int64_t amount; + int vout; +}; /** A transaction with a bunch of additional info that only the owner cares about. * It includes any unrecorded transactions needed to link it back to the block chain. @@ -761,8 +767,8 @@ public: return nChangeCached; } - void GetAmounts(std::list<std::pair<CTxDestination, int64_t> >& listReceived, - std::list<std::pair<CTxDestination, int64_t> >& listSent, int64_t& nFee, std::string& strSentAccount, const isminefilter& filter) const; + void GetAmounts(std::list<COutputEntry>& listReceived, + std::list<COutputEntry>& listSent, int64_t& nFee, std::string& strSentAccount, const isminefilter& filter) const; void GetAccountAmounts(const std::string& strAccount, int64_t& nReceived, int64_t& nSent, int64_t& nFee, const isminefilter& filter) const; |