|
|
|
@ -4104,6 +4104,16 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|
|
|
|
return walletInstance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CAddressBookData* CWallet::FindAddressBookEntry(const CTxDestination& dest, bool allow_change) const
|
|
|
|
|
{
|
|
|
|
|
const auto& address_book_it = m_address_book.find(dest);
|
|
|
|
|
if (address_book_it == m_address_book.end()) return nullptr;
|
|
|
|
|
if ((!allow_change) && address_book_it->second.IsChange()) {
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
return &address_book_it->second;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CWallet::postInitProcess()
|
|
|
|
|
{
|
|
|
|
|
auto locked_chain = chain().lock();
|
|
|
|
|