Skip to content

Commit efb7c65

Browse files
authored
fix: change block per-item byte overhead from 2 bytes to 5 bytes for requests (#22019)
Signed-off-by: Tim Farber-Newman <[email protected]>
1 parent 18e1107 commit efb7c65

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
@@ -1100,7 +1100,7 @@ private void doWork() {
11001100
"{} Starting to process items for block {}", BlockNodeConnection.this, block.blockNumber());
11011101
}
11021102

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

11061106
if (newRequestBytes > MAX_BYTES_PER_REQUEST) {

0 commit comments

Comments
 (0)