mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 20:02:43 +00:00
Compute missing_columns correctly (#8425)
N/A The difference is computed by taking the difference of expected with received. We were doing the inverse. Thanks to Yassine for finding the issue. Co-Authored-By: Pawan Dhananjay <pawandhananjay@gmail.com>
This commit is contained in:
@@ -268,8 +268,8 @@ impl<T: BeaconChainTypes> RangeDataColumnBatchRequest<T> {
|
||||
|
||||
let received_columns = columns.iter().map(|c| c.index).collect::<HashSet<_>>();
|
||||
|
||||
let missing_columns = received_columns
|
||||
.difference(expected_custody_columns)
|
||||
let missing_columns = expected_custody_columns
|
||||
.difference(&received_columns)
|
||||
.collect::<HashSet<_>>();
|
||||
|
||||
// blobs are expected for this slot but there is at least one missing columns
|
||||
|
||||
Reference in New Issue
Block a user