fix typo: `c` var name used instad of `header` in `process_pending_headers`

This commit is contained in:
ericsson 2021-04-24 17:38:09 +03:00
parent 77bceeae69
commit e05356893f
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ def process_pending_headers(state: BeaconState) -> None:
state.grandparent_epoch_confirmed_commitments[shard][slot_index] = DataCommitment()
confirmed_headers = [candidate for candidate in state.previous_epoch_pending_shard_headers if candidate.confirmed]
for header in confirmed_headers:
state.grandparent_epoch_confirmed_commitments[c.shard][c.slot % SLOTS_PER_EPOCH] = c.commitment
state.grandparent_epoch_confirmed_commitments[header.shard][header.slot % SLOTS_PER_EPOCH] = header.commitment
```
```python