We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12d3fe8 commit 5ccd48eCopy full SHA for 5ccd48e
contracts/mixnet/src/interval/transactions.rs
@@ -27,9 +27,8 @@ pub fn try_write_rewarded_set(
27
return Err(ContractError::Unauthorized);
28
}
29
30
- // sanity check to make sure the sending validator is in sync with the contract state
31
- // (i.e. so that we'd known that top k nodes are actually expected to be active)
32
- if active_set_size != state.params.mixnode_active_set_size {
+ // We don't want more then we need, less should be fine, as we could have less nodes bonded overall
+ if active_set_size > state.params.mixnode_active_set_size {
33
return Err(ContractError::UnexpectedActiveSetSize {
34
received: active_set_size,
35
expected: state.params.mixnode_active_set_size,
0 commit comments