From 94b7c15b54d0f8c07a367bda6ac98d7a22955233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Mo=CC=88ser?= Date: Mon, 1 Jun 2020 10:27:30 -0400 Subject: [PATCH] fix: inline constexpr startingCount --- tools/parser/address_state.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/parser/address_state.hpp b/tools/parser/address_state.hpp index a67ab8f6..1ea46a57 100644 --- a/tools/parser/address_state.hpp +++ b/tools/parser/address_state.hpp @@ -37,16 +37,18 @@ struct NonDudupAddressInfo { uint32_t addressNum; }; +// Initial size of the Bloom Filter for different address types template -constexpr int startingCount = 0; +inline constexpr int startingCount = 0; template<> -constexpr int startingCount = 600'000'000; +inline constexpr int startingCount = 600'000'000; template<> -constexpr int startingCount = 100'000'000; +inline constexpr int startingCount = 100'000'000; template<> -constexpr int startingCount = 100'000'000; +inline constexpr int startingCount = 100'000'000; class AddressState { + static constexpr auto AddressFalsePositiveRate = .05; template