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

Method GetExternalOutput

src/wallet/coincontrol.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31std::optional<CTxOut> CCoinControl::GetExternalOutput(const COutPoint& outpoint) const
32{
33 const auto it = m_selected.find(outpoint);
34 if (it == m_selected.end() || !it->second.HasTxOut()) {
35 return std::nullopt;
36 }
37 return it->second.GetTxOut();
38}
39
40PreselectedInput& CCoinControl::Select(const COutPoint& outpoint)
41{

Callers 3

FetchSelectedInputsFunction · 0.80
coincontrol.cppFile · 0.80

Calls 4

findMethod · 0.80
HasTxOutMethod · 0.80
GetTxOutMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected