Skip to content

Commit

Permalink
Merge pull request #7 from nerolation/patch-1
Browse files Browse the repository at this point in the history
ensure valid committee with <16 validators
  • Loading branch information
terencechain authored Jan 2, 2025
2 parents 7fa44f4 + 84acfbb commit 702b9e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs/_features/eip7805/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This is the beacon chain specification to add EIP-7805 / fork-choice enforced, c

| Name | Value |
| - | - |
| `DOMAIN_IL_COMMITTEE` | `DomainType('0x0C000000')` # (New in EIP7805) |
| `DOMAIN_IL_COMMITTEE` | `DomainType('0x0C000000')` # (New in EIP-7805) |

### Inclusion List Committee

Expand Down Expand Up @@ -108,7 +108,7 @@ def get_inclusion_list_committee(state: BeaconState, slot: Slot) -> Vector[Valid
indices = get_active_validator_indices(state, epoch)
start = (slot % SLOTS_PER_EPOCH) * IL_COMMITTEE_SIZE
end = start + IL_COMMITTEE_SIZE
return [indices[compute_shuffled_index(uint64(i), uint64(len(indices)), seed)] for i in range(start, end)]
return [indices[compute_shuffled_index(uint64(i % len(indices)), uint64(len(indices)), seed)] for i in range(start, end)]
```

## Beacon chain state transition function
Expand Down Expand Up @@ -162,4 +162,4 @@ def verify_and_notify_new_payload(self: ExecutionEngine,
return False

return True
```
```

0 comments on commit 702b9e5

Please sign in to comment.