Skip to content

Commit e4ed8ce

Browse files
committed
blockfilter: Remove default clause in switch statement.
Now the compiler will warn if not all enums are handled in the switch.
1 parent c306209 commit e4ed8ce

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/blockfilter.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,10 @@ bool BlockFilter::BuildParams(GCSFilter::Params& params) const
250250
params.m_siphash_k1 = m_block_hash.GetUint64(1);
251251
params.m_P = BASIC_FILTER_P;
252252
params.m_M = BASIC_FILTER_M;
253-
break;
254-
255-
default:
256-
return false;
253+
return true;
257254
}
258255

259-
return true;
256+
return false;
260257
}
261258

262259
uint256 BlockFilter::GetHash() const

0 commit comments

Comments
 (0)