diff --git a/config/default.js b/config/default.js index aab1acfbf3e..bdda23acda4 100644 --- a/config/default.js +++ b/config/default.js @@ -161,7 +161,7 @@ module.exports = { // activity list related settings activity: { - pageSize: 50, // Number of items per one fetch + pageSize: 250, // Number of items per one fetch }, backup: { diff --git a/renderer/reducers/activity/utils.js b/renderer/reducers/activity/utils.js index fa995d9b140..5eac603ba21 100644 --- a/renderer/reducers/activity/utils.js +++ b/renderer/reducers/activity/utils.js @@ -156,9 +156,9 @@ export const createActivityPaginator = () => { } const fetchTransactions = async (pageSize, offset, blockHeight) => { - // Lets load 50x more bloks than page size is set to since blocks only cover a 10 minute period. - // with a 50 item page size, that would mean loading transactions in chunks of about 15 days. - const vPageSize = pageSize * 50 + // Lets load 10x more bloks than page size is set to since blocks only cover a 10 minute period. + // with a 250 item page size, that would mean loading transactions in chunks of about 20 days. + const vPageSize = pageSize * 10 const firstStart = blockHeight - vPageSize // Determine end height. diff --git a/renderer/reducers/invoice/utils.js b/renderer/reducers/invoice/utils.js index e2f45487f8d..ab72806e1b5 100644 --- a/renderer/reducers/invoice/utils.js +++ b/renderer/reducers/invoice/utils.js @@ -5,7 +5,7 @@ import { convert } from '@zap/utils/btc' */ /** - * @typedef {Object} Decoration Invoice decorated with additional useful properties. + * @typedef {object} Decoration Invoice decorated with additional useful properties. * @property {'invoice'} type Activity type * @property {number} expiryDate Expiry date * @property {boolean} isExpired Boolean indicating if the invoice is expired diff --git a/renderer/reducers/transaction/utils.js b/renderer/reducers/transaction/utils.js index 66d3bce911a..4ac8b5e6b71 100644 --- a/renderer/reducers/transaction/utils.js +++ b/renderer/reducers/transaction/utils.js @@ -5,7 +5,7 @@ import { CoinBig } from '@zap/utils/coin' */ /** - * @typedef {Object} Decoration Transaction decorated with additional useful properties. + * @typedef {object} Decoration Transaction decorated with additional useful properties. * @property {'transaction'} type Activity type * @property {boolean} isReceived Boolean indicating if transaction is incoming * @property {boolean} isSent Boolean indicating if transaction is outgoing