mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 0d7e8d66c4 into merged_master (Bitcoin PR #17203)
This commit is contained in:
commit
c08bbefb33
2 changed files with 0 additions and 17 deletions
|
|
@ -4110,21 +4110,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
|
|||
return WalletBatch(*database).EraseName(EncodeDestination(address));
|
||||
}
|
||||
|
||||
const std::string& CWallet::GetLabelName(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 label ("").
|
||||
const static std::string DEFAULT_LABEL_NAME;
|
||||
return DEFAULT_LABEL_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark old keypool keys as used,
|
||||
* and generate all new keys
|
||||
|
|
|
|||
|
|
@ -1363,8 +1363,6 @@ public:
|
|||
|
||||
bool DelAddressBook(const CTxDestination& address);
|
||||
|
||||
const std::string& GetLabelName(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||
|
||||
unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
|
||||
{
|
||||
AssertLockHeld(cs_wallet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue