aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorCozz Lovan <cozzlovan@yahoo.com>2014-05-30 00:54:00 +0200
committerCozz Lovan <cozzlovan@yahoo.com>2014-07-15 15:50:33 +0200
commit1b4568cb0f00dd7a24575fe54c017e743c4e7d35 (patch)
treee84e0945325614794a6a016869dd04c7f7c969ee /src/wallet.h
parent2c0f019bfc0b9381b6dcad5960df48379b8dfe20 (diff)
Add vout to ListTransactions output
Diffstat (limited to 'src/wallet.h')
-rw-r--r--src/wallet.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wallet.h b/src/wallet.h
index ab9550a984..eaf9e96309 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;