diff --git a/src/endpoints/pool/pool.service.ts b/src/endpoints/pool/pool.service.ts index 90a61972b..d4d5c25c1 100644 --- a/src/endpoints/pool/pool.service.ts +++ b/src/endpoints/pool/pool.service.ts @@ -44,7 +44,11 @@ export class PoolService { } private applyFilters(pool: TransactionInPool[], filters: PoolFilter): TransactionInPool[] { - let results: TransactionInPool[] = []; + if (!filters.receiver && !filters.sender && !filters.type) { + return pool + } + + const results: TransactionInPool[] = []; for (const transaction of pool) { if (filters.sender && transaction.sender !== filters.sender) {