enable warning for inconsistent data columns

This commit is contained in:
Agnish Ghosh 2024-10-02 01:40:35 +05:30
parent 2ecdb078b9
commit e540c67fd1
1 changed files with 3 additions and 3 deletions

View File

@ -644,9 +644,9 @@ proc syncStep[A, B](man: SyncManager[A, B], index: int, peer: A)
let groupedDataColumns = groupDataColumns(req, blockData, dataColumnData) let groupedDataColumns = groupDataColumns(req, blockData, dataColumnData)
if groupedDataColumns.isErr(): if groupedDataColumns.isErr():
# peer.updateScore(PeerScoreNoValues) # peer.updateScore(PeerScoreNoValues)
# man.queue.push(req) man.queue.push(req)
# warn "Received data columns is inconsistent", warn "Received data columns is inconsistent",
# data_columns_map = getShortMap(req, dataColumnData), request = req, msg=groupedDataColumns.error() data_columns_map = getShortMap(req, dataColumnData), request = req, msg=groupedDataColumns.error()
return return
if (let checkRes = groupedDataColumns.get.checkDataColumns(); checkRes.isErr): if (let checkRes = groupedDataColumns.get.checkDataColumns(); checkRes.isErr):
# peer.updateScore(PeerScoreBadResponse) # peer.updateScore(PeerScoreBadResponse)