Fix whitespace in touched files
Leaving the incorrect indentation would be frustrating because: * Some editor may fix up the whitespace when editing a file, so before commiting the whitespace changes need to be undone. * It makes it harder to use clang-format-diff on a change. Can be trivially reviewed with --word-diff-regex=. --ignore-all-space
This commit is contained in:
1 file changed
+3
-6
+3
-6
@@ -42,8 +42,7 @@ static constexpr int ADDRV2_FORMAT = 0x20000000;
|
|||||||
* over all enum values and also `GetExtNetwork()` "extends" this enum by
|
* over all enum values and also `GetExtNetwork()` "extends" this enum by
|
||||||
* introducing standalone constants starting from `NET_MAX`.
|
* introducing standalone constants starting from `NET_MAX`.
|
||||||
*/
|
*/
|
||||||
enum Network
|
enum Network {
|
||||||
{
|
|
||||||
/// Addresses from these networks are not publicly routable on the global Internet.
|
/// Addresses from these networks are not publicly routable on the global Internet.
|
||||||
NET_UNROUTABLE = 0,
|
NET_UNROUTABLE = 0,
|
||||||
|
|
||||||
@@ -73,16 +72,14 @@ enum Network
|
|||||||
/// Prefix of an IPv6 address when it contains an embedded IPv4 address.
|
/// Prefix of an IPv6 address when it contains an embedded IPv4 address.
|
||||||
/// Used when (un)serializing addresses in ADDRv1 format (pre-BIP155).
|
/// Used when (un)serializing addresses in ADDRv1 format (pre-BIP155).
|
||||||
static const std::array<uint8_t, 12> IPV4_IN_IPV6_PREFIX{
|
static const std::array<uint8_t, 12> IPV4_IN_IPV6_PREFIX{
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF};
|
||||||
};
|
|
||||||
|
|
||||||
/// Prefix of an IPv6 address when it contains an embedded TORv2 address.
|
/// Prefix of an IPv6 address when it contains an embedded TORv2 address.
|
||||||
/// Used when (un)serializing addresses in ADDRv1 format (pre-BIP155).
|
/// Used when (un)serializing addresses in ADDRv1 format (pre-BIP155).
|
||||||
/// Such dummy IPv6 addresses are guaranteed to not be publicly routable as they
|
/// 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.
|
/// fall under RFC4193's fc00::/7 subnet allocated to unique-local addresses.
|
||||||
static const std::array<uint8_t, 6> TORV2_IN_IPV6_PREFIX{
|
static const std::array<uint8_t, 6> TORV2_IN_IPV6_PREFIX{
|
||||||
0xFD, 0x87, 0xD8, 0x7E, 0xEB, 0x43
|
0xFD, 0x87, 0xD8, 0x7E, 0xEB, 0x43};
|
||||||
};
|
|
||||||
|
|
||||||
/// Prefix of an IPv6 address when it contains an embedded "internal" address.
|
/// Prefix of an IPv6 address when it contains an embedded "internal" address.
|
||||||
/// Used when (un)serializing addresses in ADDRv1 format (pre-BIP155).
|
/// Used when (un)serializing addresses in ADDRv1 format (pre-BIP155).
|
||||||
|
|||||||
Reference in new issue
Block a user