mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Add address groupings RPC from the coincontrol patches.
Signed-off-by: Gregory Maxwell <greg@xiph.org>
This commit is contained in:
11
src/wallet.h
11
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;
|
||||
|
||||
Reference in New Issue
Block a user