mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
They assumed processor 0 had keys `i = 1`. Under the new validator-set code, the first key is the one with the highest amount, In case of tie, the key (or as of the last commit, a Blake hash) decides order. This commit kludges in a mapping from processor index to assigned key index, no longer assuming its value.