Skip to content

Commit 5ccd48e

Browse files
committed
Relax the active_set check
1 parent 12d3fe8 commit 5ccd48e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contracts/mixnet/src/interval/transactions.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ pub fn try_write_rewarded_set(
2727
return Err(ContractError::Unauthorized);
2828
}
2929

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 {
30+
// We don't want more then we need, less should be fine, as we could have less nodes bonded overall
31+
if active_set_size > state.params.mixnode_active_set_size {
3332
return Err(ContractError::UnexpectedActiveSetSize {
3433
received: active_set_size,
3534
expected: state.params.mixnode_active_set_size,

0 commit comments

Comments
 (0)