babylonchain / babylon

Main repo for Babylon full node
https://babylonchain.io
Other
232 stars 164 forks source link

fix: fix non-determinism in voting power rotation #597

Closed SebastianElvis closed 5 months ago

SebastianElvis commented 5 months ago

There is a non-determinism bug in voting power rotation, where we iterate over the activeBTCDels map, which is not deterministic. This PR fixes the bug by first sorting the keys before iterating over them.