Skip to content

Commit e3186f8

Browse files
committed
Use decimal weights for chain providers
1 parent 05c329f commit e3186f8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

node/resources/tests/full_config.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ ingestor = "index_0"
4848
[chains.mainnet]
4949
shard = "primary"
5050
provider = [
51-
{ label = "mainnet-0", url = "http://rpc.mainnet.io", features = ["archive", "traces"], weight = 1 },
52-
{ label = "mainnet-1", details = { type = "web3call", url = "http://rpc.mainnet.io", features = ["archive", "traces"] }, weight = 2 },
53-
{ label = "firehose", details = { type = "firehose", url = "http://localhost:9000", features = [] }, weight = 3 },
54-
{ label = "substreams", details = { type = "substreams", url = "http://localhost:9000", features = [] }, weight = 4 },
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 },
5555
]
5656

5757
[chains.ropsten]
5858
shard = "primary"
5959
provider = [
60-
{ label = "ropsten-0", url = "http://rpc.ropsten.io", transport = "rpc", features = ["archive", "traces"], weight = 1 }
60+
{ label = "ropsten-0", url = "http://rpc.ropsten.io", transport = "rpc", features = ["archive", "traces"], weight = 1.0 }
6161
]
6262

6363
[chains.goerli]
6464
shard = "primary"
6565
provider = [
66-
{ label = "goerli-0", url = "http://rpc.goerli.io", transport = "ipc", features = ["archive"], weight = 1 }
66+
{ label = "goerli-0", url = "http://rpc.goerli.io", transport = "ipc", features = ["archive"], weight = 1.0 }
6767
]
6868

6969
[chains.kovan]
7070
shard = "primary"
7171
provider = [
72-
{ label = "kovan-0", url = "http://rpc.kovan.io", transport = "ws", features = [], weight = 1 }
72+
{ label = "kovan-0", url = "http://rpc.kovan.io", transport = "ws", features = [], weight = 1.0 }
7373
]

0 commit comments

Comments
 (0)