Skip to content

Commit 46134e1

Browse files
committed
reduce highWaterMark on wallet export stream
1 parent f4491bd commit 46134e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/services/wallet-api/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ WalletService.prototype._endpointGetTransactions = function() {
714714
};
715715

716716
var missingTxidCount = 0;
717-
var txStream = new Transform({ objectMode: true, highWaterMark: 1000000 });
717+
var txStream = new Transform({ objectMode: true, highWaterMark: 100 });
718718
//txids are sent in and the actual tx's are found here
719719
txStream._transform = function(chunk, enc, callback) {
720720

@@ -1399,4 +1399,3 @@ WalletService.prototype.getRoutePrefix = function() {
13991399
};
14001400

14011401
module.exports = WalletService;
1402-

0 commit comments

Comments
 (0)