Add rateLimits to blockchain
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user