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

Class ValidDestinationVisitor

src/addresstype.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150};
151
152class ValidDestinationVisitor
153{
154public:
155 bool operator()(const CNoDestination& dest) const { return false; }
156 bool operator()(const PubKeyDestination& dest) const { return false; }
157 bool operator()(const PKHash& dest) const { return true; }
158 bool operator()(const ScriptHash& dest) const { return true; }
159 bool operator()(const WitnessV0KeyHash& dest) const { return true; }
160 bool operator()(const WitnessV0ScriptHash& dest) const { return true; }
161 bool operator()(const WitnessV1Taproot& dest) const { return true; }
162 bool operator()(const WitnessUnknown& dest) const { return true; }
163};
164} // namespace
165
166CScript GetScriptForDestination(const CTxDestination& dest)

Callers 1

IsValidDestinationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected