File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
hedera-node/hedera-app/src/main/java/com/hedera/node/app/blocks Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2929 */
3030public interface BlockStreamManager extends BlockRecordInfo , StateHashedListener {
3131 Bytes ZERO_BLOCK_HASH = Bytes .wrap (new byte [48 ]);
32+ int NUM_SIBLINGS_PER_BLOCK = 4 ;
3233
3334 /**
3435 * The types of work that may be identified as pending within a block.
Original file line number Diff line number Diff line change 22package com .hedera .node .app .blocks .impl .streaming ;
33
44import static com .hedera .hapi .util .HapiUtils .asAccountString ;
5+ import static com .hedera .node .app .blocks .BlockStreamManager .NUM_SIBLINGS_PER_BLOCK ;
56import static com .swirlds .common .io .utility .FileUtils .getAbsolutePath ;
67import static java .util .Objects .requireNonNull ;
78
@@ -243,7 +244,7 @@ public static List<OnDiskPendingBlock> loadContiguousPendingBlocks(
243244 // Verify old proofs without block timestamp or sibling hashes are skipped
244245 if (pendingProof .blockTimestamp () == null
245246 || Objects .equals (pendingProof .blockTimestamp (), Timestamp .DEFAULT )
246- || pendingProof .siblingHashesFromPrevBlockRoot ().size () != 4 ) {
247+ || pendingProof .siblingHashesFromPrevBlockRoot ().size () != NUM_SIBLINGS_PER_BLOCK ) {
247248 logger .warn (
248249 "Pending proof metadata from {} is missing required fields (not considering remaining - {})" ,
249250 proofJson .toPath (),
You can’t perform that action at this time.
0 commit comments