This commit is contained in:
Agnish Ghosh 2024-10-02 00:18:00 +05:30
parent 0b9c48cadb
commit 2ecdb078b9
1 changed files with 22 additions and 23 deletions

View File

@ -24,7 +24,7 @@ const
## Allow syncing ~64 blocks/sec (minus request costs) ## Allow syncing ~64 blocks/sec (minus request costs)
blobResponseCost = allowedOpsPerSecondCost(1000) blobResponseCost = allowedOpsPerSecondCost(1000)
## Multiple can exist per block, they are much smaller than blocks ## Multiple can exist per block, they are much smaller than blocks
dataColumnResponseCost = allowedOpsPerSecondCost(250) dataColumnResponseCost = allowedOpsPerSecondCost(4000)
## 1 blob has an equivalent memory of 8 data columns ## 1 blob has an equivalent memory of 8 data columns
type type
@ -478,7 +478,6 @@ p2pProtocol BeaconSync(version = 1,
bytes: seq[byte] bytes: seq[byte]
for i in startIndex..endIndex: for i in startIndex..endIndex:
for j in 0..<MAX_REQUEST_DATA_COLUMNS:
for k in reqColumns: for k in reqColumns:
if dag.db.getDataColumnSidecarSZ(blockIds[i].root, ColumnIndex(k), bytes): if dag.db.getDataColumnSidecarSZ(blockIds[i].root, ColumnIndex(k), bytes):
if blockIds[i].slot.epoch >= dag.cfg.DENEB_FORK_EPOCH and if blockIds[i].slot.epoch >= dag.cfg.DENEB_FORK_EPOCH and