mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-19 19:09:08 +00:00
gossip and polling fixes
This commit is contained in:
parent
445a1f249c
commit
49977242bd
@ -522,8 +522,6 @@ proc validateDataColumnSidecar*(
|
||||
# (block_header.slot, block_header.proposer_index, blob_sidecar.index)
|
||||
# with valid header signature, sidecar inclusion proof, and kzg proof.
|
||||
let block_root = hash_tree_root(block_header)
|
||||
if dag.getBlockRef(block_root).isSome():
|
||||
return errIgnore("DataColumnSidecar: already have block")
|
||||
if dataColumnQuarantine[].hasDataColumn(
|
||||
block_header.slot, block_header.proposer_index, data_column_sidecar.index):
|
||||
return errIgnore("DataColumnSidecar: already have valid data column from same proposer")
|
||||
|
@ -38,10 +38,9 @@ const
|
||||
BLOB_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000
|
||||
## How long to wait for blobs to arrive over gossip before fetching.
|
||||
|
||||
DATA_COLUMN_GOSSIP_WAIT_TIME_NS* = 5 * 1_000_000_000
|
||||
DATA_COLUMN_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000
|
||||
|
||||
POLL_INTERVAL = 1.seconds
|
||||
POLL_INTERVAL_FOR_DATA_COLUMNS = 60.seconds
|
||||
|
||||
|
||||
type
|
||||
@ -532,7 +531,6 @@ proc getMissingDataColumns(rman: RequestManager): seq[DataColumnIdentifier] =
|
||||
fetches: seq[DataColumnIdentifier]
|
||||
ready: seq[Eth2Digest]
|
||||
|
||||
return fetches
|
||||
for columnless in rman.quarantine[].peekColumnless():
|
||||
withBlck(columnless):
|
||||
when consensusFork >= ConsensusFork.Deneb:
|
||||
@ -577,7 +575,7 @@ proc requestManagerDataColumnLoop(
|
||||
rman: RequestManager) {.async: (raises: [CancelledError]).} =
|
||||
while true:
|
||||
|
||||
await sleepAsync(POLL_INTERVAL_FOR_DATA_COLUMNS)
|
||||
await sleepAsync(POLL_INTERVAL)
|
||||
if rman.inhibit():
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user