Litecoin: Branding

pull/751/head
Adrian Gallagher 3 years ago
parent 61377cdf84
commit ec6bbffe51
No known key found for this signature in database
GPG Key ID: FE3348877809386C

@ -88,7 +88,7 @@ static const std::array<uint8_t, 6> TORV2_IN_IPV6_PREFIX{
/// Such dummy IPv6 addresses are guaranteed to not be publicly routable as they
/// fall under RFC4193's fc00::/7 subnet allocated to unique-local addresses.
static const std::array<uint8_t, 6> INTERNAL_IN_IPV6_PREFIX{
0xFD, 0x6B, 0x88, 0xC0, 0x87, 0x24 // 0xFD + sha256("bitcoin")[0:5].
0xFD, 0x6C, 0xE9, 0xFE, 0x45, 0x49 // 0xFD + sha256("litecoin")[0:5].
};
/// Size of IPv4 address (in bytes).

@ -5,7 +5,7 @@
/**
* See https://www.boost.org/doc/libs/1_71_0/libs/test/doc/html/boost_test/utf_reference/link_references/link_boost_test_module_macro.html
*/
#define BOOST_TEST_MODULE Bitcoin Core Test Suite
#define BOOST_TEST_MODULE Litecoin Core Test Suite
#include <boost/test/unit_test.hpp>

@ -490,7 +490,7 @@ BOOST_AUTO_TEST_CASE(cnetaddr_unserialize_v2)
s << MakeSpan(ParseHex(
"02" // network type (IPv6)
"10" // address length
"fd6b88c08724ca978112ca1bbdcafac2")); // address: 0xfd + sha256("bitcoin")[0:5] +
"fd6ce9fe4549ca978112ca1bbdcafac2")); // address: 0xfd + sha256("bitcoin")[0:5] +
// sha256(name)[0:10]
s >> addr;
BOOST_CHECK(addr.IsInternal());

Loading…
Cancel
Save