From a83fac3cdbe6f4c23d395b3f89df2cba23b8bf21 Mon Sep 17 00:00:00 2001 From: Harvey Zuccon Date: Tue, 19 May 2026 12:14:20 +0200 Subject: [PATCH] Add rateLimits to blockchain --- src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 90efeb5..8e16840 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,7 +42,12 @@ export class App { debug('Creating blockchain...'); const blockchain = await BlockchainElectrum.from({ store: blockchainCache, - servers: [ 'cashnode.bch.ninja' ] + servers: [ 'cashnode.bch.ninja' ], + rateLimit: { + concurrency: 100, + maxPerInterval: 100, + intervalMs: 100, + } }); // Create the wallet for the app.