Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopLimiter ¶
type NoopLimiter struct{}
func NewNoopLimiter ¶
func NewNoopLimiter() *NoopLimiter
func (*NoopLimiter) IsRateLimited ¶
func (l *NoopLimiter) IsRateLimited(address flow.Address) bool
type RateLimiter ¶
type RateLimiter interface { // IsRateLimited returns true if the address is rate limited IsRateLimited(address flow.Address) bool }
RateLimiter is an interface for checking if an address is rate limited. By convention, the address used is the payer field of a transaction. This rate limiter is applied when a transaction is first received by a node, meaning that if a transaction is rate-limited it will be dropped.
Click to show internal directories.
Click to hide internal directories.