Skip to content

Commit 6a75d50

Browse files
authored
feat(section-bloom): write section-bloom and block.bloom (#6372)
1 parent d2d49bb commit 6a75d50

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

framework/src/main/java/org/tron/core/db/Manager.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,12 +1857,10 @@ private void processBlock(BlockCapsule block, List<TransactionCapsule> txs)
18571857

18581858
chainBaseManager.getBalanceTraceStore().resetCurrentBlockTrace();
18591859

1860-
if (CommonParameter.getInstance().isJsonRpcFilterEnabled()) {
1861-
Bloom blockBloom = chainBaseManager.getSectionBloomStore()
1862-
.initBlockSection(transactionRetCapsule);
1863-
chainBaseManager.getSectionBloomStore().write(block.getNum());
1864-
block.setBloom(blockBloom);
1865-
}
1860+
Bloom blockBloom = chainBaseManager.getSectionBloomStore()
1861+
.initBlockSection(transactionRetCapsule);
1862+
chainBaseManager.getSectionBloomStore().write(block.getNum());
1863+
block.setBloom(blockBloom);
18661864
}
18671865

18681866
private void payReward(BlockCapsule block) {

0 commit comments

Comments
 (0)