Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 05841dd

Browse files
committed
minor change
1 parent 55623b3 commit 05841dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/protocol/sybilprotection/sybilprotectionv1/performance/testsuite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (t *TestSuite) calculatePoolRewardFloat(epoch iotago.EpochIndex, totalValid
282282
targetRewardFloat := float64(targetReward)
283283

284284
poolCoefficientFloat := (poolStakeFloat/totalStakeFloat + validatorStakeFloat/totalValidatorsStakeFloat) / 2.0
285-
PoolRewardFloat := poolCoefficientFloat * float64(targetRewardFloat) * performanceFactorFloat
285+
PoolRewardFloat := poolCoefficientFloat * targetRewardFloat * performanceFactorFloat
286286
return PoolRewardFloat
287287
}
288288

pkg/protocol/sybilprotection/sybilprotectionv1/performance/tracker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestManager_Rewards(t *testing.T) {
5151
// better performin validator should get more rewards
5252
ts.AssertValidatorRewardGreaterThan("A", "B", epoch, epochActions)
5353

54-
epoch = iotago.EpochIndex(3000)
54+
epoch = iotago.EpochIndex(3)
5555
epochActions = map[string]*EpochActions{
5656
"A": {
5757
PoolStake: 10,

0 commit comments

Comments
 (0)