diff options
author | Lee Clagett <code@leeclagett.com> | 2017-08-25 11:14:46 -0400 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2017-10-05 11:57:09 -0400 |
commit | 8b0068773525e585ce4c98d4ea2ce66dd6cf4aad (patch) | |
tree | dd14a8fb911acf97900548c7c1965c2d6a46a331 /tests/unit_tests/ban.cpp | |
parent | Merge pull request #2518 (diff) | |
download | monero-8b0068773525e585ce4c98d4ea2ce66dd6cf4aad.tar.xz |
Upgrades to epee::net_utils::network_address
- internal nullptr checks
- prevent modifications to network_address (shallow copy issues)
- automagically works with any type containing interface functions
- removed fnv1a hashing
- ipv4_network_address now flattened with no base class
Diffstat (limited to 'tests/unit_tests/ban.cpp')
-rw-r--r-- | tests/unit_tests/ban.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/ban.cpp b/tests/unit_tests/ban.cpp index b8d57452e..d15716a42 100644 --- a/tests/unit_tests/ban.cpp +++ b/tests/unit_tests/ban.cpp @@ -33,7 +33,7 @@ #include "p2p/net_node.h" #include "cryptonote_protocol/cryptonote_protocol_handler.h" -#define MAKE_IPV4_ADDRESS(a,b,c,d) new epee::net_utils::ipv4_network_address(MAKE_IP(a,b,c,d),0) +#define MAKE_IPV4_ADDRESS(a,b,c,d) epee::net_utils::ipv4_network_address{MAKE_IP(a,b,c,d),0} namespace cryptonote { class blockchain_storage; |