MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / Get

Method Get

src/base58.cpp:251–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251CTxDestination CBitcoinAddress::Get() const
252{
253 if (!IsValid())
254 return CNoDestination();
255 uint160 id;
256 memcpy(&id, &vchData[0], 20);
257 if (vchVersion == Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS))
258 return CKeyID(id);
259 else if (vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS))
260 return CScriptID(id);
261 else
262 return CNoDestination();
263}
264
265bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const
266{

Callers 9

MutateTxAddOutAddrFunction · 0.45
ReadMethod · 0.45
ExistsMethod · 0.45
validateaddressFunction · 0.45
BOOST_FOREACHFunction · 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