Remove legacy mined block cpfp loop, reset stale ancestors
This commit is contained in:
		
							parent
							
								
									f0c056d558
								
							
						
					
					
						commit
						5cf0980af4
					
				@ -127,14 +127,6 @@ class Blocks {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (addMempoolData) {
 | 
			
		||||
      transactions.forEach((tx) => {
 | 
			
		||||
        if (!tx.cpfpChecked) {
 | 
			
		||||
          Common.setRelativesAndGetCpfpInfo(tx as MempoolTransactionExtended, mempool); // Child Pay For Parent
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!quiet) {
 | 
			
		||||
      logger.debug(`${transactionsFound} of ${txIds.length} found in mempool. ${transactionsFetched} fetched through backend service.`);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -358,6 +358,9 @@ class MempoolBlocks {
 | 
			
		||||
            block: blockIndex,
 | 
			
		||||
            vsize: totalVsize + (mempoolTx.vsize / 2),
 | 
			
		||||
          };
 | 
			
		||||
          mempoolTx.ancestors = [];
 | 
			
		||||
          mempoolTx.descendants = [];
 | 
			
		||||
          mempoolTx.bestDescendant = null;
 | 
			
		||||
          mempoolTx.cpfpChecked = true;
 | 
			
		||||
 | 
			
		||||
          // online calculation of stack-of-blocks fee stats
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user