enable logging for root and range requests on successful responses

This commit is contained in:
Agnish Ghosh 2024-09-02 13:37:07 +05:30
parent 84da290669
commit 077b59249d
1 changed files with 8 additions and 1 deletions

View File

@ -24,7 +24,7 @@ const
## Allow syncing ~64 blocks/sec (minus request costs)
blobResponseCost = allowedOpsPerSecondCost(1000)
## Multiple can exist per block, they are much smaller than blocks
dataColumnResponseCost = allowedOpsPerSecondCost(4000)
dataColumnResponseCost = allowedOpsPerSecondCost(1000)
## 1 blob has an equivalent memory of 8 data columns
type
@ -432,6 +432,9 @@ p2pProtocol BeaconSync(version = 1,
peer.network.forkDigestAtEpoch(blockRef.slot.epoch).data)
inc found
debug "Responded to Data Column Sidecar By Root",
peer, blck = shortLog(blockRef), columnIndex = index
debug "Data column root request done",
peer, roots = columnIds.len, count, found
@ -492,6 +495,10 @@ p2pProtocol BeaconSync(version = 1,
uncompressedLen, bytes,
peer.network.forkDigestAtEpoch(blockIds[i].slot.epoch).data)
inc found
debug "Responded to DataColumnSidecar range request",
peer, blck = shortLog(blockIds[i])
else:
break