|
|
@ -94,7 +94,7 @@ CTxDestination DecodeDestination(const std::string& str, const CChainParams& par
|
|
|
|
const std::vector<unsigned char>& script_prefix2 = params.Base58Prefix(CChainParams::SCRIPT_ADDRESS2);
|
|
|
|
const std::vector<unsigned char>& script_prefix2 = params.Base58Prefix(CChainParams::SCRIPT_ADDRESS2);
|
|
|
|
if (data.size() == hash.size() + script_prefix2.size() && std::equal(script_prefix2.begin(), script_prefix2.end(), data.begin())) {
|
|
|
|
if (data.size() == hash.size() + script_prefix2.size() && std::equal(script_prefix2.begin(), script_prefix2.end(), data.begin())) {
|
|
|
|
std::copy(data.begin() + script_prefix2.size(), data.end(), hash.begin());
|
|
|
|
std::copy(data.begin() + script_prefix2.size(), data.end(), hash.begin());
|
|
|
|
return CScriptID(hash);
|
|
|
|
return ScriptHash(hash);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
data.clear();
|
|
|
|
data.clear();
|
|
|
|