Disable optimization in CPFP indexing when block summaries indexing is enabled

This commit is contained in:
wiz 2022-11-29 23:47:43 +09:00 committed by GitHub
parent 89293b4358
commit 272b6d2437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -742,7 +742,7 @@ class Blocks {
public async $indexCPFP(hash: string, height: number): Promise<void> { public async $indexCPFP(hash: string, height: number): Promise<void> {
let transactions; let transactions;
if (Common.blocksSummariesIndexingEnabled()) { if (false/*Common.blocksSummariesIndexingEnabled()*/) {
transactions = await this.$getStrippedBlockTransactions(hash); transactions = await this.$getStrippedBlockTransactions(hash);
const rawBlock = await bitcoinApi.$getRawBlock(hash); const rawBlock = await bitcoinApi.$getRawBlock(hash);
const block = Block.fromBuffer(rawBlock); const block = Block.fromBuffer(rawBlock);