Merge pull request #107 from lbryio/utxo_release

change: utxo_release before transaction_list
This commit is contained in:
Sean Yesmunt 2019-01-24 12:23:32 -05:00 committed by GitHub
commit 7f9088d819
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

4
dist/bundle.js vendored
View file

@ -4137,7 +4137,9 @@ function doFetchTransactions() {
type: ACTIONS.FETCH_TRANSACTIONS_STARTED
});
_lbry2.default.transaction_list().then(function (results) {
_lbry2.default.utxo_release().then(function () {
return _lbry2.default.transaction_list();
}).then(function (results) {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {

View file

@ -37,14 +37,16 @@ export function doFetchTransactions() {
type: ACTIONS.FETCH_TRANSACTIONS_STARTED,
});
Lbry.transaction_list().then((results) => {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {
transactions: results,
},
Lbry.utxo_release()
.then(() => Lbry.transaction_list())
.then((results) => {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {
transactions: results,
},
});
});
});
};
}