Skip to content

Commit

Permalink
add unlimited lcd
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Dec 7, 2023
1 parent f6d042f commit f09a3d0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion indexers/warp-protocol/src/utils/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ export class Environment {

static load() {
dotenv.config();
Environment.lcd = ChainModule.lcdClient({ networks: [process.env.NETWORK as NetworkName] });

let lcdClientConfig = ChainModule.lcdClientConfig([process.env.NETWORK as NetworkName]);

// override to private lcd with uncapped rate limiting
if (process.env.NETWORK === 'mainnet') {
lcdClientConfig['phoenix-1'].lcd = 'http://rpc-lcd.phoenix-1.internal';
}

Environment.lcd = new LCDClient(lcdClientConfig);
}

static getGenesis = (chainName: string): Epoch => {
Expand Down

0 comments on commit f09a3d0

Please sign in to comment.