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

Method Get

src/base58.cpp:379–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379CTxDestination CBitcoinAddress::Get() const
380{
381 if (!IsValid())
382 return CNoDestination();
383 uint160 id;
384 memcpy(static_cast<void*>(&id), &vchData[0], 20);
385 if (vchVersion == Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS))
386 return CKeyID(id);
387 else if (vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS))
388 return CScriptID(id);
389 else
390 return CNoDestination();
391}
392
393bool CBitcoinAddress::GetIndexKey(uint160& hashBytes, int& type) const
394{

Callers 7

ReadMethod · 0.45
ExistsMethod · 0.45
GetDevfeeScriptMethod · 0.45
GetTransactionFunction · 0.45
WriteBlockToDiskFunction · 0.45
UndoWriteToDiskFunction · 0.45
WriteMethod · 0.45

Calls 5

CNoDestinationClass · 0.85
memcpyFunction · 0.85
ParamsClass · 0.70
CKeyIDClass · 0.70
CScriptIDClass · 0.70

Tested by

no test coverage detected