remove utxo_release call before txo_list is called

This commit is contained in:
Sean Yesmunt 2020-07-22 12:46:40 -04:00
parent 11a43bae79
commit 3ce73c6646
2 changed files with 10 additions and 13 deletions

4
dist/bundle.es.js vendored
View file

@ -2921,7 +2921,7 @@ function doFetchTransactions(page = 1, pageSize = 99999) {
type: FETCH_TRANSACTIONS_STARTED
});
lbryProxy.utxo_release().then(() => lbryProxy.transaction_list({ page, page_size: pageSize })).then(result => {
lbryProxy.transaction_list({ page, page_size: pageSize }).then(result => {
dispatch({
type: FETCH_TRANSACTIONS_COMPLETED,
data: {
@ -2941,7 +2941,7 @@ function doFetchTxoPage() {
const state = getState();
const queryParams = selectTxoPageParams(state);
lbryProxy.utxo_release().then(() => lbryProxy.txo_list(queryParams)).then(res => {
lbryProxy.txo_list(queryParams).then(res => {
dispatch({
type: FETCH_TXO_PAGE_COMPLETED,
data: res

View file

@ -63,16 +63,14 @@ export function doFetchTransactions(page = 1, pageSize = 99999) {
type: ACTIONS.FETCH_TRANSACTIONS_STARTED,
});
Lbry.utxo_release()
.then(() => Lbry.transaction_list({ page, page_size: pageSize }))
.then(result => {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {
transactions: result.items,
},
});
Lbry.transaction_list({ page, page_size: pageSize }).then(result => {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {
transactions: result.items,
},
});
});
};
}
@ -85,8 +83,7 @@ export function doFetchTxoPage() {
const state = getState();
const queryParams = selectTxoPageParams(state);
Lbry.utxo_release()
.then(() => Lbry.txo_list(queryParams))
Lbry.txo_list(queryParams)
.then(res => {
dispatch({
type: ACTIONS.FETCH_TXO_PAGE_COMPLETED,