Fix calculation for quorum size.

Change-Id: I2240e4a395576cbdbe11f38883f418647d92ce50
This commit is contained in:
Reisen 2021-06-30 10:08:10 +00:00
parent 30e8419f93
commit 4a08dbf73e
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ pub fn post_vaa(ctx: &ExecutionContext, accs: &mut PostVAA, vaa: PostVAAData) ->
let len = (len * 10) / 3;
// Multiplication by two to get a 2/3 quorum.
let len = len * 2;
// Division by 10+1 to bring the number back into range.
len / (10 + 1)
// Division to bring number back into range.
len / 10 + 1
};
if signature_count < required_consensus_count {