Update some Spec v.. comments & minor logic fix

This commit is contained in:
Paul Hauner
2019-05-22 12:17:40 +10:00
parent ea36c5ad35
commit 987afb6595
3 changed files with 9 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ use types::*;
///
/// Is title `verify_bitfield` in spec.
///
/// Spec v0.5.1
/// Spec v0.6.1
pub fn verify_bitfield_length(bitfield: &Bitfield, committee_size: usize) -> bool {
if bitfield.num_bytes() != ((committee_size + 7) / 8) {
return false;