Limit reply size on TMGetObjectByHash queries (#6110)

`PeerImp` processes `TMGetObjectByHash` queries with an unbounded per-request loop, which performs a `NodeStore` fetch and then appends retrieved data to the reply for each queried object without a local count cap or reply-byte budget. However, the `Nodestore` fetches are expensive when high in numbers, which might slow down the process overall. Hence this code change adds an upper cap on the response size.
This commit is contained in:
Pratik Mankawde
2026-01-21 14:19:53 +00:00
committed by Bart
parent d46443d8b8
commit 4016b3fcb3
3 changed files with 224 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ test.overlay > test.toplevel
test.overlay > test.unit_test
test.overlay > xrpl.basics
test.overlay > xrpld.app
test.overlay > xrpld.nodestore
test.overlay > xrpld.overlay
test.overlay > xrpld.peerfinder
test.overlay > xrpld.shamap