Difference between revisions of "SenderRateLimitConfig"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
* https://github.com/ethereum-optimism/infra/blob/main/proxyd/config.go#L191
 
+
<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 {
 
Enabled        bool
 
Enabled        bool
Line 10: Line 10:
 
AllowedChainIds []*big.Int `toml:"allowed_chain_ids"`
 
AllowedChainIds []*big.Int `toml:"allowed_chain_ids"`
 
  }
 
  }
 +
</pre>
 +
 +
== Related ==
 +
* [[EIP155]]
 +
* <code>[[eth_sendRawTransaction]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 14:12, 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[edit]

See also[edit]

Advertising: