mirror of
https://github.com/status-im/das-research.git
synced 2025-02-23 11:58:14 +00:00
add to receivedQueue also in row/column receive code
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
9ab51278c8
commit
f67c70896c
@ -173,6 +173,9 @@ class Validator:
|
||||
# register receive so that we are not sending back
|
||||
self.columnNeighbors[id][src].receiving |= column
|
||||
self.receivedBlock.mergeColumn(id, column)
|
||||
for i in range(len(column)):
|
||||
if column[i]:
|
||||
self.receivedQueue.append((i, id))
|
||||
self.statsRxInSlot += column.count(1)
|
||||
else:
|
||||
pass
|
||||
@ -183,6 +186,9 @@ class Validator:
|
||||
# register receive so that we are not sending back
|
||||
self.rowNeighbors[id][src].receiving |= row
|
||||
self.receivedBlock.mergeRow(id, row)
|
||||
for i in range(len(row)):
|
||||
if row[i]:
|
||||
self.receivedQueue.append((id, i))
|
||||
self.statsRxInSlot += row.count(1)
|
||||
else:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user