Add throws ConsensusException

This commit is contained in:
Manfred Karrer 2019-02-03 16:55:46 +01:00
parent ae5b96cca8
commit 22b33b6485
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -68,7 +68,7 @@ public class VoteResultConsensus {
// hex encoded hashOfProposalList for comparision
@Nullable
public static byte[] getMajorityHash(List<VoteResultService.HashWithStake> hashWithStakeList)
throws VoteResultException.ValidationException {
throws VoteResultException.ValidationException, VoteResultException.ConsensusException {
try {
checkArgument(!hashWithStakeList.isEmpty(), "hashWithStakeList must not be empty");
} catch (Throwable t) {