Skip to content

Commit fadd38a

Browse files
authored
chore: cherry-pick PR #22019 (changing block item overhead to 5 bytes) (#22038)
Signed-off-by: Tim Farber-Newman <[email protected]>
1 parent cf8b6ee commit fadd38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hedera-node/hedera-app/src/main/java/com/hedera/node/app/blocks/impl/streaming/BlockNodeConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ private void doWork() {
10051005
"{} Starting to process items for block {}", BlockNodeConnection.this, block.blockNumber());
10061006
}
10071007

1008-
final int itemSize = item.protobufSize() + 2; // each item has 2 bytes of overhead
1008+
final int itemSize = item.protobufSize() + 5; // add an extra 5 bytes to account for potential overhead
10091009
final long newRequestBytes = pendingRequestBytes + itemSize;
10101010

10111011
if (newRequestBytes > MAX_BYTES_PER_REQUEST) {

0 commit comments

Comments
 (0)