Skip to content

Commit

Permalink
feat: introduce quicknode reth on mainnet for shadow latency evaluati…
Browse files Browse the repository at this point in the history
…on (#699)

QuickNode provisioned RETH node. We should give it a latency evaluation.
  • Loading branch information
jsy1218 authored May 17, 2024
1 parent 54e380d commit d49e60f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export class RoutingAPIPipeline extends Stack {
'QUICKNODE_1',
'NIRVANA_1',
'ALCHEMY_1',
'QUICKNODERETH_1',
// Blast
'QUICKNODE_81457',
'INFURA_81457',
Expand Down
2 changes: 1 addition & 1 deletion bin/stacks/routing-lambda-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class RoutingLambdaStack extends cdk.NestedStack {

description: 'Routing Lambda',
environment: {
VERSION: '19',
VERSION: '20',
NODE_OPTIONS: '--enable-source-maps',
POOL_CACHE_BUCKET: poolCacheBucket.bucketName,
POOL_CACHE_BUCKET_2: poolCacheBucket2.bucketName,
Expand Down
4 changes: 2 additions & 2 deletions lib/config/rpcProviderProdConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"useMultiProviderProb": 1,
"latencyEvaluationSampleProb": 0.001,
"healthCheckSampleProb": 0.001,
"providerInitialWeights": [1, 0, 0, 0],
"providerUrls": ["INFURA_1", "ALCHEMY_1", "QUICKNODE_1", "NIRVANA_1"]
"providerInitialWeights": [1, 0, 0, 0, 0],
"providerUrls": ["INFURA_1", "ALCHEMY_1", "QUICKNODE_1", "NIRVANA_1", "QUICKNODERETH_1"]
},
{
"chainId": 81457,
Expand Down
4 changes: 4 additions & 0 deletions lib/rpc/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ export function generateProviderUrl(key: string, value: string): string {
case 'QUICKNODE_81457': {
return `https://${tokens[0]}.blast-mainnet.quiknode.pro/${tokens[1]}`
}
// QuickNode RETH
case 'QUICKNODERETH_1': {
return `https://${tokens[0]}.quiknode.pro/${tokens[1]}`
}
// Alchemy
case 'ALCHEMY_10': {
return `https://opt-mainnet-fast.g.alchemy.com/v2/${tokens[0]}`
Expand Down

0 comments on commit d49e60f

Please sign in to comment.