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
There's more to do (FIXMEs / TODOs in the virtual-staking code / tests), but will be dealt with during full valset state implementation (#118). Closing.
The current rewards withdrawal process would break if a validator was slashed or fell out of the validator set.
See
mesh-security/contracts/consumer/virtual-staking/src/contract.rs
Lines 78 to 97 in 8e520df
And this comment
mesh-security/contracts/consumer/virtual-staking/src/contract.rs
Lines 138 to 150 in 8e520df
Fixing this requiring keeping track of the active validator set on the Consumer (i.e. on the
virtual-staking
contract).This is similar to the way the valset is being kept up-to-date in Tgrade. You can take a look at
tgrade-valset
for inspiration / ideas.The text was updated successfully, but these errors were encountered: