MCPcopy Create free account
hub / github.com/LUX-Core/lux / CBitcoinAddressVisitor

Class CBitcoinAddressVisitor

src/base58.cpp:333–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331} // namespace
332
333class CBitcoinAddressVisitor : public boost::static_visitor<bool>
334{
335private:
336 CBitcoinAddress* addr;
337
338public:
339 CBitcoinAddressVisitor(CBitcoinAddress* addrIn) : addr(addrIn) {}
340
341 bool operator()(const CKeyID& id) const { return addr->Set(id); }
342 bool operator()(const CScriptID& id) const { return addr->Set(id); }
343 bool operator()(const WitnessV0KeyHash& id) const { return addr; }
344 bool operator()(const WitnessV0ScriptHash& id) const { return addr; }
345 bool operator()(const WitnessUnknown& id) const { return addr; }
346 bool operator()(const CNoDestination& no) const { return false; }
347};
348
349bool CBitcoinAddress::Set(const CKeyID& id)
350{

Callers 1

SetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected