[refactor] rescheduling txn get moved to a semi-random asgard
We've recently seen a large amount of large txns pass through the network, and in result, we only saw 3 of 5 asgards being utilized. This happens due to the logic of how asgards are selected to send funds (backlog of outbound items is not taken into account, economic security is which is a higher priority).
To select a new vault, create a list of possible vaults. This includes vaults that have enough funds and gas, but excludes the current assigned vault. Then generate a number via rep = int64(tx.InHash) + ctx.BlockHeight() % len(available_vaults)
. This modulus should select your next vault semi-randomly.
Edited by Son of Odin