Remove unused account-related wallet methods.
This commit is contained in:
parent
8af7e138ac
commit
df51fc8761
|
@ -4061,21 +4061,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
|
|||
return CWalletDB(strWalletFile).EraseName(keyIO.EncodeDestination(address));
|
||||
}
|
||||
|
||||
const std::string& CWallet::GetAccountName(const CScript& scriptPubKey) const
|
||||
{
|
||||
CTxDestination address;
|
||||
if (ExtractDestination(scriptPubKey, address) && !scriptPubKey.IsUnspendable()) {
|
||||
auto mi = mapAddressBook.find(address);
|
||||
if (mi != mapAddressBook.end()) {
|
||||
return mi->second.name;
|
||||
}
|
||||
}
|
||||
// A scriptPubKey that doesn't have an entry in the address book is
|
||||
// associated with the default account ("").
|
||||
const static std::string DEFAULT_ACCOUNT_NAME;
|
||||
return DEFAULT_ACCOUNT_NAME;
|
||||
}
|
||||
|
||||
bool CWallet::SetDefaultKey(const CPubKey &vchPubKey)
|
||||
{
|
||||
if (fFileBacked)
|
||||
|
@ -4357,20 +4342,6 @@ set< set<CTxDestination> > CWallet::GetAddressGroupings()
|
|||
return ret;
|
||||
}
|
||||
|
||||
std::set<CTxDestination> CWallet::GetAccountAddresses(const std::string& strAccount) const
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
set<CTxDestination> result;
|
||||
for (const std::pair<CTxDestination, CAddressBookData>& item : mapAddressBook)
|
||||
{
|
||||
const CTxDestination& address = item.first;
|
||||
const string& strName = item.second.name;
|
||||
if (strName == strAccount)
|
||||
result.insert(address);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool CReserveKey::GetReservedKey(CPubKey& pubkey)
|
||||
{
|
||||
if (nIndex == -1)
|
||||
|
|
|
@ -1156,8 +1156,6 @@ public:
|
|||
std::set< std::set<CTxDestination> > GetAddressGroupings();
|
||||
std::map<CTxDestination, CAmount> GetAddressBalances();
|
||||
|
||||
std::set<CTxDestination> GetAccountAddresses(const std::string& strAccount) const;
|
||||
|
||||
std::optional<uint256> GetSproutNoteNullifier(
|
||||
const JSDescription& jsdesc,
|
||||
const libzcash::SproutPaymentAddress& address,
|
||||
|
@ -1211,8 +1209,6 @@ public:
|
|||
|
||||
void UpdatedTransaction(const uint256 &hashTx);
|
||||
|
||||
const std::string& GetAccountName(const CScript& scriptPubKey) const;
|
||||
|
||||
void Inventory(const uint256 &hash)
|
||||
{
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue