Skip to content

Commit 3ded534

Browse files
Merge pull request #3 from DaMandal0rian/codex/add-weighted-rpc-steering-and-weights
Enable weighted RPC steering in test config
2 parents 6eb3701 + e3186f8 commit 3ded534

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

node/resources/tests/full_config.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
weighted_rpc_steering = true
2+
13
[general]
24
query = "query_node_.*"
35

@@ -46,26 +48,26 @@ ingestor = "index_0"
4648
[chains.mainnet]
4749
shard = "primary"
4850
provider = [
49-
{ label = "mainnet-0", url = "http://rpc.mainnet.io", features = ["archive", "traces"] },
50-
{ label = "mainnet-1", details = { type = "web3call", url = "http://rpc.mainnet.io", features = ["archive", "traces"] }},
51-
{ label = "firehose", details = { type = "firehose", url = "http://localhost:9000", features = [] }},
52-
{ label = "substreams", details = { type = "substreams", url = "http://localhost:9000", features = [] }},
51+
{ label = "mainnet-0", url = "http://rpc.mainnet.io", features = ["archive", "traces"], weight = 0.1 },
52+
{ label = "mainnet-1", details = { type = "web3call", url = "http://rpc.mainnet.io", features = ["archive", "traces"] }, weight = 0.2 },
53+
{ label = "firehose", details = { type = "firehose", url = "http://localhost:9000", features = [] }, weight = 0.3 },
54+
{ label = "substreams", details = { type = "substreams", url = "http://localhost:9000", features = [] }, weight = 0.4 },
5355
]
5456

5557
[chains.ropsten]
5658
shard = "primary"
5759
provider = [
58-
{ label = "ropsten-0", url = "http://rpc.ropsten.io", transport = "rpc", features = ["archive", "traces"] }
60+
{ label = "ropsten-0", url = "http://rpc.ropsten.io", transport = "rpc", features = ["archive", "traces"], weight = 1.0 }
5961
]
6062

6163
[chains.goerli]
6264
shard = "primary"
6365
provider = [
64-
{ label = "goerli-0", url = "http://rpc.goerli.io", transport = "ipc", features = ["archive"] }
66+
{ label = "goerli-0", url = "http://rpc.goerli.io", transport = "ipc", features = ["archive"], weight = 1.0 }
6567
]
6668

6769
[chains.kovan]
6870
shard = "primary"
6971
provider = [
70-
{ label = "kovan-0", url = "http://rpc.kovan.io", transport = "ws", features = [] }
72+
{ label = "kovan-0", url = "http://rpc.kovan.io", transport = "ws", features = [], weight = 1.0 }
7173
]

0 commit comments

Comments
 (0)