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

Method WriteWatchOnly

src/wallet/walletdb.cpp:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156bool WalletBatch::WriteWatchOnly(const CScript &dest, const CKeyMetadata& keyMeta)
157{
158 if (!WriteIC(std::make_pair(DBKeys::WATCHMETA, dest), keyMeta)) {
159 return false;
160 }
161 return WriteIC(std::make_pair(DBKeys::WATCHS, dest), uint8_t{'1'});
162}
163
164bool WalletBatch::EraseWatchOnly(const CScript &dest)
165{

Callers 1

AddWatchOnlyWithDBMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected