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

Method MarkDestinationsDirty

src/wallet/wallet.cpp:2554–2566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2552}
2553
2554void CWallet::MarkDestinationsDirty(const std::set<CTxDestination>& destinations) {
2555 for (auto& entry : mapWallet) {
2556 CWalletTx& wtx = entry.second;
2557 if (wtx.m_is_cache_empty) continue;
2558 for (unsigned int i = 0; i < wtx.tx->vout.size(); i++) {
2559 CTxDestination dst;
2560 if (ExtractDestination(wtx.tx->vout[i].scriptPubKey, dst) && destinations.count(dst)) {
2561 wtx.MarkDirty(*this);
2562 break;
2563 }
2564 }
2565 }
2566}
2567
2568std::set<CTxDestination> CWallet::GetLabelAddresses(const std::string& label) const
2569{

Callers

nothing calls this directly

Calls 4

ExtractDestinationFunction · 0.85
countMethod · 0.80
sizeMethod · 0.45
MarkDirtyMethod · 0.45

Tested by

no test coverage detected