duality-labs / duality

Apache License 2.0
10 stars 5 forks source link

remove non-deterministic iteration of hash-map from getStakeRefKeys #466

Open jcompagni10 opened 11 months ago

jcompagni10 commented 11 months ago

In specific circumstances (ie. insufficient gas) the non-determinism introduced by iterating over a hashmap can cause a consensus failure

see: https://go.dev/blog/maps#iteration-order