Difference between revisions of "SenderRateLimitConfig"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
<pre>
 
<pre>
 
  // SenderRateLimitConfig configures the sender-based rate limiter
 
  // SenderRateLimitConfig configures the sender-based rate limiter
  // for [[eth_sendRawTransaction]] requests.
+
  // for eth_sendRawTransaction requests.
 
  // To enable pre-eip155 transactions, add '0' to allowed_chain_ids.
 
  // To enable pre-eip155 transactions, add '0' to allowed_chain_ids.
 
  type SenderRateLimitConfig struct {
 
  type SenderRateLimitConfig struct {
Line 14: Line 14:
 
== Related ==
 
== Related ==
 
* [[EIP155]]
 
* [[EIP155]]
 +
* [[eth_sendRawTransaction]]
  
 
== See also ==
 
== See also ==

Revision as of 10:46, 20 September 2024

 // SenderRateLimitConfig configures the sender-based rate limiter
 // for eth_sendRawTransaction requests.
 // To enable pre-eip155 transactions, add '0' to allowed_chain_ids.
 type SenderRateLimitConfig struct {
	Enabled         bool
	Interval        TOMLDuration
	Limit           int
	AllowedChainIds []*big.Int `toml:"allowed_chain_ids"`
 }

Related

See also

Advertising: