MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetNotMineScriptPubKeys

Method GetNotMineScriptPubKeys

src/wallet/scriptpubkeyman.cpp:524–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524std::unordered_set<CScript, SaltedSipHasher> LegacyDataSPKM::GetNotMineScriptPubKeys() const
525{
526 LOCK(cs_KeyStore);
527 std::unordered_set<CScript, SaltedSipHasher> spks;
528 for (const CScript& script : setWatchOnly) {
529 if (!IsMine(script)) spks.insert(script);
530 }
531 return spks;
532}
533
534std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
535{

Callers 1

ApplyMigrationDataMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected