Skip to content

Commit

Permalink
Ship 3979 remove ws validation seth (#1316)
Browse files Browse the repository at this point in the history
* Add ForceHttp Option
  • Loading branch information
davidcauchi authored Nov 11, 2024
1 parent cb1a5a5 commit 3b0f987
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
6 changes: 6 additions & 0 deletions book/src/libs/seth.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ pending_nonce_protection_enabled = true
pending_nonce_protection_timeout = "5m"
```

If you want to use HTTP instead of WS you can do so by setting to true:

```toml
force_http = false
```

You can add more networks like this:

```toml
Expand Down
1 change: 1 addition & 0 deletions seth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type Config struct {
BlockStatsConfig *BlockStatsConfig `toml:"block_stats"`
GasBump *GasBumpConfig `toml:"gas_bump"`
ReadOnly bool `toml:"read_only"`
ForceHTTP bool `toml:"force_http"`
}

type GasBumpConfig struct {
Expand Down
19 changes: 11 additions & 8 deletions seth/seth.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ check_rpc_health_on_start = false
# only for tracing, when you want to make sure that no transactions are sent to the network.
read_only = false

# when enabled SETH will initialize using HTTP instead of WS
force_http = false

[gas_bumps]
# when > 0 then we will bump gas price for transactions that are stuck in the mempool
# by default the bump step is controlled by gas_price_estimation_tx_priority (check readme.md for more details)
Expand All @@ -77,7 +80,7 @@ key_sync_retries = 10

[[networks]]
name = "Anvil"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
urls_secret = ["ws://localhost:8545"]
transfer_gas_fee = 21_000
Expand All @@ -91,7 +94,7 @@ gas_tip_cap = 1_000_000_000

[[networks]]
name = "Geth"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
urls_secret = ["ws://localhost:8546"]
transfer_gas_fee = 21_000
Expand All @@ -105,7 +108,7 @@ gas_tip_cap = 3_000_000_000

[[networks]]
name = "Default"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
# enable EIP-1559 transactions, because Seth will disable them if they are not supported
eip_1559_dynamic_fees = true
Expand All @@ -122,7 +125,7 @@ gas_tip_cap = 50_000_000_000 #50 gwei

[[networks]]
name = "Fuji"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
eip_1559_dynamic_fees = true

Expand All @@ -145,7 +148,7 @@ eip_1559_dynamic_fees = true

[[networks]]
name = "Sepolia"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
eip_1559_dynamic_fees = true

Expand All @@ -169,7 +172,7 @@ gas_tip_cap = 5_000_000_000

[[networks]]
name = "Mumbai"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
eip_1559_dynamic_fees = true

Expand All @@ -196,7 +199,7 @@ gas_tip_cap = 30460480806

[[networks]]
name = "zkEVM"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "30s"
eip_1559_dynamic_fees = false

Expand All @@ -220,7 +223,7 @@ gas_tip_cap = 1_800_000_000

[[networks]]
name = "ARBITRUM_SEPOLIA"
dial_timeout="1m"
dial_timeout = "1m"
transaction_timeout = "10m"
transfer_gas_fee = 50_000
# gas_limit = 15_000_000
Expand Down

0 comments on commit 3b0f987

Please sign in to comment.