Fix arg order missing shares validation

The arguments were provided in the wrong order.
This commit is contained in:
Noah Vesely
2018-03-27 14:35:40 -06:00
committed by Romain Ruetschi
parent 5b35c69c8e
commit fd74534fa1

View File

@ -81,7 +81,7 @@ pub(crate) fn validate_shares<S: IsShare>(shares: Vec<S>) -> Result<(u8, Vec<S>)
let threshold = k_compatibility_sets.keys().last().unwrap().to_owned();
if shares_count < threshold as usize {
bail!(ErrorKind::MissingShares(threshold as usize, shares_count));
bail!(ErrorKind::MissingShares(shares_count, threshold as usize));
}
Ok((threshold, result))