Changeset View
Changeset View
Standalone View
Standalone View
src/test/dstencode_tests.cpp
Show All 27 Lines | |||||
BOOST_FIXTURE_TEST_SUITE(dstencode_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(dstencode_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(test_addresses) { | BOOST_AUTO_TEST_CASE(test_addresses) { | ||||
std::vector<uint8_t> hash = {118, 160, 64, 83, 189, 160, 168, | std::vector<uint8_t> hash = {118, 160, 64, 83, 189, 160, 168, | ||||
139, 218, 81, 119, 184, 106, 21, | 139, 218, 81, 119, 184, 106, 21, | ||||
195, 178, 159, 85, 152, 115}; | 195, 178, 159, 85, 152, 115}; | ||||
const CTxDestination dstKey = CKeyID(uint160(hash)); | const CTxDestination dstKey = PKHash(uint160(hash)); | ||||
const CTxDestination dstScript = CScriptID(uint160(hash)); | const CTxDestination dstScript = ScriptHash(uint160(hash)); | ||||
std::string cashaddr_pubkey = | std::string cashaddr_pubkey = | ||||
"bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a"; | "bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a"; | ||||
std::string cashaddr_script = | std::string cashaddr_script = | ||||
"bitcoincash:ppm2qsznhks23z7629mms6s4cwef74vcwvn0h829pq"; | "bitcoincash:ppm2qsznhks23z7629mms6s4cwef74vcwvn0h829pq"; | ||||
std::string base58_pubkey = "1BpEi6DfDAUFd7GtittLSdBeYJvcoaVggu"; | std::string base58_pubkey = "1BpEi6DfDAUFd7GtittLSdBeYJvcoaVggu"; | ||||
std::string base58_script = "3CWFddi6m4ndiGyKqzYvsFYagqDLPVMTzC"; | std::string base58_script = "3CWFddi6m4ndiGyKqzYvsFYagqDLPVMTzC"; | ||||
Show All 26 Lines |