fix blacklist performance #107

Merged
jessopb merged 1 commit from fix-blacklistMap into master 2021-04-14 18:59:34 +02:00
2 changed files with 4 additions and 8 deletions
Showing only changes of commit f5a0df82fc - Show all commits

View file

@ -13,10 +13,8 @@ export const selectBlacklistedOutpointMap = createSelector(
outpoints
? outpoints.reduce((acc, val) => {
const outpoint = `${val.txid}:${val.nout}`;
return {
...acc,
[outpoint]: 1,
};
acc[outpoint] = 1;
return acc;
}, {})
: {}
);

View file

@ -13,10 +13,8 @@ export const selectFilteredOutpointMap = createSelector(
outpoints
? outpoints.reduce((acc, val) => {
const outpoint = `${val.txid}:${val.nout}`;
return {
...acc,
[outpoint]: 1,
};
acc[outpoint] = 1;
return acc;
}, {})
: {}
);