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 | a2041c98742154df4360831c99cfd9200a5620c2 (diff) | |
| download | monzero-core-8b0068773525e585ce4c98d4ea2ce66dd6cf4aad.tar.gz monzero-core-8b0068773525e585ce4c98d4ea2ce66dd6cf4aad.tar.xz monzero-core-8b0068773525e585ce4c98d4ea2ce66dd6cf4aad.zip | |
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; |
