diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-06 17:07:25 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-09 12:48:05 +0200 |
commit | fa0540cd46eaf44d9e1a9f91c3a937986826c4fa (patch) | |
tree | 1bac883d22116dcb2cf9f65e315de8d1a6c4f148 /src/test | |
parent | f7c19e829eca10ce8b4acafc61264f8bb9b922f3 (diff) | |
download | bitcoin-fa0540cd46eaf44d9e1a9f91c3a937986826c4fa.tar.xz |
net: Extract download permission from noban
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/netbase_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/netbase_tests.cpp b/src/test/netbase_tests.cpp index 0fbf257f0e..c4d5d0b6d0 100644 --- a/src/test/netbase_tests.cpp +++ b/src/test/netbase_tests.cpp @@ -397,12 +397,13 @@ BOOST_AUTO_TEST_CASE(netpermissions_test) BOOST_CHECK(NetWhitelistPermissions::TryParse("bloom,forcerelay,noban,relay,mempool@1.2.3.4/32", whitelistPermissions, error)); const auto strings = NetPermissions::ToStrings(PF_ALL); - BOOST_CHECK_EQUAL(strings.size(), 5U); + BOOST_CHECK_EQUAL(strings.size(), 6U); BOOST_CHECK(std::find(strings.begin(), strings.end(), "bloomfilter") != strings.end()); BOOST_CHECK(std::find(strings.begin(), strings.end(), "forcerelay") != strings.end()); BOOST_CHECK(std::find(strings.begin(), strings.end(), "relay") != strings.end()); BOOST_CHECK(std::find(strings.begin(), strings.end(), "noban") != strings.end()); BOOST_CHECK(std::find(strings.begin(), strings.end(), "mempool") != strings.end()); + BOOST_CHECK(std::find(strings.begin(), strings.end(), "download") != strings.end()); } BOOST_AUTO_TEST_CASE(netbase_dont_resolve_strings_with_embedded_nul_characters) |