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

Method DisplayAddress

src/wallet/wallet.cpp:2630–2642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628}
2629
2630bool CWallet::DisplayAddress(const CTxDestination& dest)
2631{
2632 CScript scriptPubKey = GetScriptForDestination(dest);
2633 for (const auto& spk_man : GetScriptPubKeyMans(scriptPubKey)) {
2634 auto signer_spk_man = dynamic_cast<ExternalSignerScriptPubKeyMan *>(spk_man);
2635 if (signer_spk_man == nullptr) {
2636 continue;
2637 }
2638 ExternalSigner signer = ExternalSignerScriptPubKeyMan::GetExternalSigner();
2639 return signer_spk_man->DisplayAddress(scriptPubKey, signer);
2640 }
2641 return false;
2642}
2643
2644bool CWallet::LockCoin(const COutPoint& output, WalletBatch* batch)
2645{

Callers 2

displayAddressMethod · 0.45
walletdisplayaddressFunction · 0.45

Calls 1

GetScriptForDestinationFunction · 0.85

Tested by

no test coverage detected