Rate limiter state, keeping track of whether an account can do more operations.

entity rl_state {

The account that's being limited

key account: account;

How many points the account currently has

mutable points: integer;

When was the last time this account sent an operation

mutable last_update: integer;

How much time it takes to get one rate limit point back

mutable recovery_time: integer;
}
© 2024 Chromia