You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tthe List() function in both weighted.go and default.go returns the current set of validators with the exclusive access guard. However, it seems not a safe implementation because other functions may touch the returned validators at the time of use. It results in memory inconsistency. The recommendation to fix this is to replace List() with a safe guard that guarantees exclusive access to the validator array.
The text was updated successfully, but these errors were encountered:
Tthe
List()
function in bothweighted.go
anddefault.go
returns the current set of validators with the exclusive access guard. However, it seems not a safe implementation because other functions may touch the returned validators at the time of use. It results in memory inconsistency. The recommendation to fix this is to replaceList()
with a safe guard that guarantees exclusive access to the validator array.The text was updated successfully, but these errors were encountered: