mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 11:40:42 +02:00
blockfilter: Remove default clause in switch statement.
Now the compiler will warn if not all enums are handled in the switch.
This commit is contained in:
parent
c30620983d
commit
e4ed8ce2c8
@ -250,13 +250,10 @@ bool BlockFilter::BuildParams(GCSFilter::Params& params) const
|
|||||||
params.m_siphash_k1 = m_block_hash.GetUint64(1);
|
params.m_siphash_k1 = m_block_hash.GetUint64(1);
|
||||||
params.m_P = BASIC_FILTER_P;
|
params.m_P = BASIC_FILTER_P;
|
||||||
params.m_M = BASIC_FILTER_M;
|
params.m_M = BASIC_FILTER_M;
|
||||||
break;
|
return true;
|
||||||
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 BlockFilter::GetHash() const
|
uint256 BlockFilter::GetHash() const
|
||||||
|
Loading…
Reference in New Issue
Block a user