mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 19:37:47 +01:00
more processBlockTemplates null checks
This commit is contained in:
parent
5f45ce80f1
commit
e4868b70c1
1 changed files with 5 additions and 2 deletions
|
@ -382,7 +382,7 @@ class MempoolBlocks {
|
|||
|
||||
const ancestors: Ancestor[] = [];
|
||||
const descendants: Ancestor[] = [];
|
||||
let ancestor: MempoolTransactionExtended
|
||||
let ancestor: MempoolTransactionExtended;
|
||||
for (const cluster of clusters) {
|
||||
for (const memberTxid of cluster) {
|
||||
const mempoolTx = mempool[memberTxid];
|
||||
|
@ -462,7 +462,7 @@ class MempoolBlocks {
|
|||
|
||||
for (let i = 0; i < block.length; i++) {
|
||||
const txid = block[i];
|
||||
if (txid) {
|
||||
if (txid in mempool) {
|
||||
mempoolTx = mempool[txid];
|
||||
// save position in projected blocks
|
||||
mempoolTx.position = {
|
||||
|
@ -481,6 +481,9 @@ class MempoolBlocks {
|
|||
mempoolTx.acceleratedAt = acceleration?.added;
|
||||
mempoolTx.feeDelta = acceleration?.feeDelta;
|
||||
for (const ancestor of mempoolTx.ancestors || []) {
|
||||
if (!(ancestor.txid in mempool)) {
|
||||
continue;
|
||||
}
|
||||
if (!mempool[ancestor.txid].acceleration) {
|
||||
mempool[ancestor.txid].cpfpDirty = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue