Skip to content

Commit

Permalink
fix faulty node calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Oct 22, 2023
1 parent 5a0e708 commit 69119e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func OffChainAggregatorV2ConfigWithNodes(numberNodes int, inflightExpiry time.Du
}
faultyNodes := 0
if numberNodes > 1 {
faultyNodes = numberNodes/3 - 1
faultyNodes = (numberNodes - 1) / 3
}
if faultyNodes == 0 {
faultyNodes = 1
Expand Down

0 comments on commit 69119e2

Please sign in to comment.