Skip to content

Commit

Permalink
fix(node): removing limits on wallet address endpoint
Browse files Browse the repository at this point in the history
removing the limits on wallet addresses on a few endpoints
  • Loading branch information
micahriggan committed Jan 4, 2019
1 parent 766005d commit 8b1515b
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ export class InternalStateProvider implements CSP.IChainStateService {
}

async streamAddressTransactions(params: CSP.StreamAddressUtxosParams) {
const { args, req, res } = params;
const { limit = 10 } = args;
const { req, res } = params;
const query = this.getAddressQuery(params);
Storage.apiStreamingFind(CoinStorage, query, { limit }, req, res);
Storage.apiStreamingFind(CoinStorage, query, {}, req, res);
}

async getBalanceForAddress(params: CSP.GetBalanceForAddressParams) {
Expand Down Expand Up @@ -253,9 +252,9 @@ export class InternalStateProvider implements CSP.IChainStateService {
}

streamWalletAddresses(params: CSP.StreamWalletAddressesParams) {
let { walletId, limit = 1000, req, res } = params;
let { walletId, req, res } = params;
let query = { wallet: walletId };
Storage.apiStreamingFind(WalletAddressStorage, query, { limit }, req, res);
Storage.apiStreamingFind(WalletAddressStorage, query, {}, req, res);
}

async walletCheck(params: CSP.WalletCheckParams) {
Expand Down

0 comments on commit 8b1515b

Please sign in to comment.