MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / AddWatchOnly

Method AddWatchOnly

src/wallet/wallet.cpp:377–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377bool CWallet::AddWatchOnly(const CScript& dest)
378{
379 if (!CCryptoKeyStore::AddWatchOnly(dest))
380 return false;
381 const CKeyMetadata& meta = m_script_metadata[CScriptID(dest)];
382 UpdateTimeFirstKey(meta.nCreateTime);
383 NotifyWatchonlyChanged(true);
384 return WalletBatch(*database).WriteWatchOnly(dest, meta);
385}
386
387bool CWallet::AddWatchOnly(const CScript& dest, int64_t nCreateTime)
388{

Callers 1

rpcdump.cppFile · 0.45

Calls 4

NotifyWatchonlyChangedFunction · 0.85
WalletBatchClass · 0.85
WriteWatchOnlyMethod · 0.80
CScriptIDClass · 0.50

Tested by

no test coverage detected