Skip to content

Commit 0323d46

Browse files
authored
chore: shadow sampling mainnet traffic to quicknode test key (#722)
1 parent 4c30084 commit 0323d46

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/config/rpcProviderProdConfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"useMultiProviderProb": 1,
7070
"latencyEvaluationSampleProb": 0.05,
7171
"healthCheckSampleProb": 0.001,
72-
"providerInitialWeights": [0, 1],
73-
"providerUrls": ["ALCHEMY_1", "QUICKNODE_1"]
72+
"providerInitialWeights": [0, 1, 0],
73+
"providerUrls": ["ALCHEMY_1", "QUICKNODE_1", "QUICKNODE_TEST_1"]
7474
},
7575
{
7676
"chainId": 81457,

lib/rpc/utils.ts

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export function generateProviderUrl(key: string, value: string): string {
101101
case 'QUICKNODE_7777777': {
102102
return `https://${tokens[0]}.zora-mainnet.quiknode.pro/${tokens[1]}`
103103
}
104+
// QuickNode test key
105+
case 'QUICKNODE_TEST_1': {
106+
return `https://${tokens[0]}.quiknode.pro/${tokens[1]}`
107+
}
104108
// QuickNode RETH
105109
case 'QUICKNODERETH_1': {
106110
return `https://${tokens[0]}.quiknode.pro/${tokens[1]}`

0 commit comments

Comments
 (0)