Skip to content

Commit 7a32e03

Browse files
committed
fix compilation
1 parent 2c4a121 commit 7a32e03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/internal/optimizer/brute_force.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ func (o *BruteForceOptimizer) OptimizeTable(table *stakergs.LookupTable) (*Brute
115115
warnings = append(warnings, probWarnings...)
116116

117117
// Calculate initial weights using the base algorithm
118-
newWeights, bucketResults, lossResult := baseOptimizer.calculateWeights(payouts, assignments, lossIndices)
118+
newWeights, bucketResults, lossResult, weightWarnings := baseOptimizer.calculateWeights(payouts, assignments, lossIndices)
119+
warnings = append(warnings, weightWarnings...)
119120

120121
// Send initial progress
121122
o.sendProgress("init", 0, calculateRTPFromWeights(newWeights, payouts))

0 commit comments

Comments
 (0)