Add rateLimits to blockchain

This commit is contained in:
2026-05-19 12:14:20 +02:00
parent b5b76b4a82
commit a83fac3cdb

View File

@@ -42,7 +42,12 @@ export class App {
debug('Creating blockchain...'); debug('Creating blockchain...');
const blockchain = await BlockchainElectrum.from({ const blockchain = await BlockchainElectrum.from({
store: blockchainCache, store: blockchainCache,
servers: [ 'cashnode.bch.ninja' ] servers: [ 'cashnode.bch.ninja' ],
rateLimit: {
concurrency: 100,
maxPerInterval: 100,
intervalMs: 100,
}
}); });
// Create the wallet for the app. // Create the wallet for the app.