diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-06-04 16:12:04 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-06-04 16:12:04 +0200 |
commit | bdb62096f0109b2ec76849d33d6cf7187dea299f (patch) | |
tree | 0ba41ca245019c1123fdccf4a860ff1b9b974087 /src/test/fuzz | |
parent | a164cd3ba694ffeba03b2887a411b7f82f6c087e (diff) | |
download | bitcoin-bdb62096f0109b2ec76849d33d6cf7187dea299f.tar.xz |
fuzz: reduce possible networks check
If an address classifies as `IsRFC4193()`, then it cannot be
`NET_ONION` (Tor v3), thus remove that condition from the assert.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/netaddress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/netaddress.cpp b/src/test/fuzz/netaddress.cpp index f9d8129ca9..6cb81901cb 100644 --- a/src/test/fuzz/netaddress.cpp +++ b/src/test/fuzz/netaddress.cpp @@ -54,7 +54,7 @@ FUZZ_TARGET(netaddress) (void)net_addr.IsRFC3927(); (void)net_addr.IsRFC3964(); if (net_addr.IsRFC4193()) { - assert(net_addr.GetNetwork() == Network::NET_ONION || net_addr.GetNetwork() == Network::NET_INTERNAL || net_addr.GetNetwork() == Network::NET_UNROUTABLE); + assert(net_addr.GetNetwork() == Network::NET_INTERNAL || net_addr.GetNetwork() == Network::NET_UNROUTABLE); } (void)net_addr.IsRFC4380(); (void)net_addr.IsRFC4843(); |