aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2018-12-21 23:53:29 -0600
committerJim Posen <jim.posen@gmail.com>2018-12-21 23:53:29 -0600
commite4ed8ce2c848695855bd7fa4d66765d2eac6d255 (patch)
treeb80c6399729d8b38818d0b0863888068a2584e9e /src
parentc30620983d2e2c9aee6f52878ed14ba685e8683e (diff)
blockfilter: Remove default clause in switch statement.
Now the compiler will warn if not all enums are handled in the switch.
Diffstat (limited to 'src')
-rw-r--r--src/blockfilter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/blockfilter.cpp b/src/blockfilter.cpp
index 379d3ea170..bcf24047ff 100644
--- a/src/blockfilter.cpp
+++ b/src/blockfilter.cpp
@@ -250,13 +250,10 @@ bool BlockFilter::BuildParams(GCSFilter::Params& params) const
params.m_siphash_k1 = m_block_hash.GetUint64(1);
params.m_P = BASIC_FILTER_P;
params.m_M = BASIC_FILTER_M;
- break;
-
- default:
- return false;
+ return true;
}
- return true;
+ return false;
}
uint256 BlockFilter::GetHash() const