mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 06:47:52 +01:00
Filter accelerations for matching pool
This commit is contained in:
parent
b74b8a8a5a
commit
43845cda5c
1 changed files with 5 additions and 1 deletions
|
@ -358,11 +358,15 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||
|
||||
const acceleratedInBlock = {};
|
||||
for (const acc of accelerations) {
|
||||
acceleratedInBlock[acc.txid] = acc;
|
||||
if (acc.pools?.some(pool => pool === this.block?.extras?.pool.id || pool?.['pool_unique_id'] === this.block?.extras?.pool.id)) {
|
||||
acceleratedInBlock[acc.txid] = acc;
|
||||
}
|
||||
}
|
||||
for (const tx of transactions) {
|
||||
if (acceleratedInBlock[tx.txid]) {
|
||||
tx.acc = true;
|
||||
} else {
|
||||
tx.acc = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue