From 46134e1a6302c497ddf6c1789ab811a663af34bd Mon Sep 17 00:00:00 2001 From: Gabe Gattis Date: Wed, 7 Jun 2017 17:39:51 -0400 Subject: [PATCH] reduce highWaterMark on wallet export stream --- lib/services/wallet-api/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/services/wallet-api/index.js b/lib/services/wallet-api/index.js index b47b8255c..68d25716a 100644 --- a/lib/services/wallet-api/index.js +++ b/lib/services/wallet-api/index.js @@ -714,7 +714,7 @@ WalletService.prototype._endpointGetTransactions = function() { }; var missingTxidCount = 0; - var txStream = new Transform({ objectMode: true, highWaterMark: 1000000 }); + var txStream = new Transform({ objectMode: true, highWaterMark: 100 }); //txids are sent in and the actual tx's are found here txStream._transform = function(chunk, enc, callback) { @@ -1399,4 +1399,3 @@ WalletService.prototype.getRoutePrefix = function() { }; module.exports = WalletService; -