MCPcopy Create free account
hub / github.com/ElementsProject/elements / haveWatchOnly

Method haveWatchOnly

src/wallet/interfaces.cpp:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 return m_wallet->IsMine(dest) & ISMINE_SPENDABLE;
169 }
170 bool haveWatchOnly() override
171 {
172 auto spk_man = m_wallet->GetLegacyScriptPubKeyMan();
173 if (spk_man) {
174 return spk_man->HaveWatchOnly();
175 }
176 return false;
177 };
178 bool setAddressBook(const CTxDestination& dest, const std::string& name, const std::string& purpose) override
179 {
180 return m_wallet->SetAddressBook(dest, name, purpose);

Callers 4

WalletModelMethod · 0.80
setModelMethod · 0.80
exportClickedMethod · 0.80
setWalletModelMethod · 0.80

Calls 2

HaveWatchOnlyMethod · 0.80

Tested by

no test coverage detected