diff options
| author | coderrr <[email protected]> | 2012-08-01 12:48:42 -0400 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-08-23 15:55:42 -0400 |
| commit | 22dfd7359863217eb8caef75084cfa8fa8e1d8fb (patch) | |
| tree | 5ed884dcea256b01a5d9bd140ddac3377f6d31ed /src/wallet.h | |
| parent | Merge pull request #1393 from luke-jr/refactor_times (diff) | |
| download | discoin-22dfd7359863217eb8caef75084cfa8fa8e1d8fb.tar.xz discoin-22dfd7359863217eb8caef75084cfa8fa8e1d8fb.zip | |
Add address groupings RPC from the coincontrol patches.
Signed-off-by: Gregory Maxwell <[email protected]>
Diffstat (limited to 'src/wallet.h')
| -rw-r--r-- | src/wallet.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet.h b/src/wallet.h index 9103aa675..5f6a6a444 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -10,6 +10,7 @@ #include <stdlib.h> +#include "base58.h" #include "main.h" #include "key.h" #include "keystore.h" @@ -176,6 +177,9 @@ public: int64 GetOldestKeyPoolTime(); void GetAllReserveKeys(std::set<CKeyID>& setAddress); + std::set< std::set<std::string> > GetAddressGroupings(); + std::map<std::string, int64> GetAddressBalances(); + bool IsMine(const CTxIn& txin) const; int64 GetDebit(const CTxIn& txin) const; bool IsMine(const CTxOut& txout) const @@ -643,6 +647,13 @@ public: return true; } + std::string GetAddressOfTxOut(int n) + { + CTxDestination addr; + ExtractDestination(vout[n].scriptPubKey, addr); + return CBitcoinAddress(addr).ToString(); + } + bool WriteToDisk(); int64 GetTxTime() const; |