leapdao / leap-contracts

LeapDAO's implementation of More Viable Plasma / Plasma Leap
https://leapdao.org
Mozilla Public License 2.0
45 stars 18 forks source link

prevent reducing epochLength below number of active validators in posOperator contract #120

Closed johannbarbie closed 4 years ago

johannbarbie commented 5 years ago

Bounty

Currently you could set epochLength to a number less then validator set size and by that lock the stake of some validator.

Scope

Deliverables

Gain for the project

prevent reward loss for the validators

Roles

bounty gardener: @troggy / 30 DAI bounty worker: @troggy / 75% bounty reviewer: name / 25%

Funded by

Dev Circle

troggy commented 4 years ago

@johannbarbie I guess, we are not supporting slot gaps, right?

E.g. Given there are 6 validators on slots 0 to 5 and epochLength of 6. If validator on slot 4 is logged out and slot 4 is free now (owned by 0x0), we cannot set epochLength to 5. Even if there are 5 validators now