diff options
author | fanquake <fanquake@gmail.com> | 2021-09-29 09:43:37 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-09-29 09:43:37 +0800 |
commit | f1ed1d3194d4160923f3b02fa1acffd805ab4428 (patch) | |
tree | 35561332407619818448c4c3960fab253259ea02 /src/bloom.h | |
parent | 2ba4ddf31d27bebc144b3729479967b40bbe0b6a (diff) | |
download | bitcoin-f1ed1d3194d4160923f3b02fa1acffd805ab4428.tar.xz |
bloom: use constexpr where appropriate
Diffstat (limited to 'src/bloom.h')
-rw-r--r-- | src/bloom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bloom.h b/src/bloom.h index 391e2cc888..67177c6daa 100644 --- a/src/bloom.h +++ b/src/bloom.h @@ -13,8 +13,8 @@ class COutPoint; class CTransaction; //! 20,000 items with fp rate < 0.1% or 10,000 items and <0.0001% -static const unsigned int MAX_BLOOM_FILTER_SIZE = 36000; // bytes -static const unsigned int MAX_HASH_FUNCS = 50; +static constexpr unsigned int MAX_BLOOM_FILTER_SIZE = 36000; // bytes +static constexpr unsigned int MAX_HASH_FUNCS = 50; /** * First two bits of nFlags control how much IsRelevantAndUpdate actually updates |