Add rate limit on staking transactions#287
Conversation
sam0x17
left a comment
There was a problem hiding this comment.
looks good to me, though we do have to be very careful about these state changes in validate, but I think for the purpose of preventing spam it is necessary
|
The reason for changing the state during validation is to prevent spamming of the pool. If Though the additional checks at execution would prevent these subsequent staking transactions from completing, the primary aim of the PR is to prevent such spamming. Edit: I was wrong. The small time window paired with the financial cost to the staker should be sufficient in preventing pool spam before the stake is executed. |
This PR adds a rate limit to staking & unstaking transactions.