fix blacklist performance
This commit is contained in:
parent
7faea40d87
commit
f5a0df82fc
2 changed files with 4 additions and 8 deletions
|
@ -13,10 +13,8 @@ export const selectBlacklistedOutpointMap = createSelector(
|
||||||
outpoints
|
outpoints
|
||||||
? outpoints.reduce((acc, val) => {
|
? outpoints.reduce((acc, val) => {
|
||||||
const outpoint = `${val.txid}:${val.nout}`;
|
const outpoint = `${val.txid}:${val.nout}`;
|
||||||
return {
|
acc[outpoint] = 1;
|
||||||
...acc,
|
return acc;
|
||||||
[outpoint]: 1,
|
|
||||||
};
|
|
||||||
}, {})
|
}, {})
|
||||||
: {}
|
: {}
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,10 +13,8 @@ export const selectFilteredOutpointMap = createSelector(
|
||||||
outpoints
|
outpoints
|
||||||
? outpoints.reduce((acc, val) => {
|
? outpoints.reduce((acc, val) => {
|
||||||
const outpoint = `${val.txid}:${val.nout}`;
|
const outpoint = `${val.txid}:${val.nout}`;
|
||||||
return {
|
acc[outpoint] = 1;
|
||||||
...acc,
|
return acc;
|
||||||
[outpoint]: 1,
|
|
||||||
};
|
|
||||||
}, {})
|
}, {})
|
||||||
: {}
|
: {}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue