Fix calculation for quorum size.
Change-Id: I2240e4a395576cbdbe11f38883f418647d92ce50
This commit is contained in:
parent
30e8419f93
commit
4a08dbf73e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue