remove support utxo count for now, add page limit
This commit is contained in:
parent
acc54f157f
commit
0274f7e13e
2 changed files with 11 additions and 7 deletions
9
dist/bundle.es.js
vendored
9
dist/bundle.es.js
vendored
|
@ -2830,12 +2830,15 @@ function doFetchUtxoCounts() {
|
|||
type: FETCH_UTXO_COUNT_STARTED
|
||||
});
|
||||
|
||||
let resultSets = yield Promise.all([lbryProxy.txo_list({ type: 'other', is_not_spent: true }), lbryProxy.txo_list({ type: 'support', is_not_spent: true })]);
|
||||
let resultSets = yield Promise.all([lbryProxy.txo_list({ type: 'other', is_not_spent: true, page: 1, page_size: 1 })]
|
||||
// removing until we figure out sdk load / need it
|
||||
// Lbry.txo_list({ type: 'support', is_not_spent: true }),
|
||||
);
|
||||
const counts = {};
|
||||
const paymentCount = resultSets[0]['total_items'];
|
||||
const supportCount = resultSets[1]['total_items'];
|
||||
// const supportCount = resultSets[1]['total_items'];
|
||||
counts['other'] = typeof paymentCount === 'number' ? paymentCount : 0;
|
||||
counts['support'] = typeof supportCount === 'number' ? supportCount : 0;
|
||||
counts['support'] = 0;
|
||||
|
||||
dispatch({
|
||||
type: FETCH_UTXO_COUNT_COMPLETED,
|
||||
|
|
|
@ -136,14 +136,15 @@ export function doFetchUtxoCounts() {
|
|||
});
|
||||
|
||||
let resultSets = await Promise.all([
|
||||
Lbry.txo_list({ type: 'other', is_not_spent: true }),
|
||||
Lbry.txo_list({ type: 'support', is_not_spent: true }),
|
||||
Lbry.txo_list({ type: 'other', is_not_spent: true, page: 1, page_size: 1 }),
|
||||
// removing until we figure out sdk load / need it
|
||||
// Lbry.txo_list({ type: 'support', is_not_spent: true }),
|
||||
]);
|
||||
const counts = {};
|
||||
const paymentCount = resultSets[0]['total_items'];
|
||||
const supportCount = resultSets[1]['total_items'];
|
||||
// const supportCount = resultSets[1]['total_items'];
|
||||
counts['other'] = typeof paymentCount === 'number' ? paymentCount : 0;
|
||||
counts['support'] = typeof supportCount === 'number' ? supportCount : 0;
|
||||
counts['support'] = 0;
|
||||
|
||||
dispatch({
|
||||
type: ACTIONS.FETCH_UTXO_COUNT_COMPLETED,
|
||||
|
|
Loading…
Reference in a new issue