Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.cpp
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
void learnRelatedScripts(const CPubKey &key, OutputType type) override { | void learnRelatedScripts(const CPubKey &key, OutputType type) override { | ||||
m_wallet->GetLegacyScriptPubKeyMan()->LearnRelatedScripts(key, | m_wallet->GetLegacyScriptPubKeyMan()->LearnRelatedScripts(key, | ||||
type); | type); | ||||
} | } | ||||
bool addDestData(const CTxDestination &dest, const std::string &key, | bool addDestData(const CTxDestination &dest, const std::string &key, | ||||
const std::string &value) override { | const std::string &value) override { | ||||
LOCK(m_wallet->cs_wallet); | LOCK(m_wallet->cs_wallet); | ||||
return m_wallet->AddDestData(dest, key, value); | WalletBatch batch{m_wallet->GetDatabase()}; | ||||
return m_wallet->AddDestData(batch, dest, key, value); | |||||
} | } | ||||
bool eraseDestData(const CTxDestination &dest, | bool eraseDestData(const CTxDestination &dest, | ||||
const std::string &key) override { | const std::string &key) override { | ||||
LOCK(m_wallet->cs_wallet); | LOCK(m_wallet->cs_wallet); | ||||
return m_wallet->EraseDestData(dest, key); | WalletBatch batch{m_wallet->GetDatabase()}; | ||||
return m_wallet->EraseDestData(batch, dest, key); | |||||
} | } | ||||
std::vector<std::string> | std::vector<std::string> | ||||
getDestValues(const std::string &prefix) override { | getDestValues(const std::string &prefix) override { | ||||
LOCK(m_wallet->cs_wallet); | LOCK(m_wallet->cs_wallet); | ||||
return m_wallet->GetDestValues(prefix); | return m_wallet->GetDestValues(prefix); | ||||
} | } | ||||
void lockCoin(const COutPoint &output) override { | void lockCoin(const COutPoint &output) override { | ||||
auto locked_chain = m_wallet->chain().lock(); | auto locked_chain = m_wallet->chain().lock(); | ||||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |