Skip to content

Commit a4777b3

Browse files
committed
Pause network when OPR is out of SPR tolerance range.
1 parent e718260 commit a4777b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ func (d *Pegnetd) GetAssetRates(oprWinners []opr.AssetUint, sprWinners []opr.Ass
12161216
if (float64(oprRate) >= toleranceBandLow) && (float64(oprRate) <= toleranceBandHigh) {
12171217
filteredRates = append(filteredRates, oprWinners[i])
12181218
} else {
1219-
filteredRates = append(filteredRates, sprWinners[i])
1219+
return nil, fmt.Errorf("opr is out side of tolerance band")
12201220
}
12211221
}
12221222
}

0 commit comments

Comments
 (0)