Skip to content

Commit

Permalink
Merge pull request #2563 from ericsson49/ericsson49/fix_typos_in_shar…
Browse files Browse the repository at this point in the history
…ding_spec

Fix typos in sharding/beacon-chain.md, which break setup.py:get_spec processing
  • Loading branch information
hwwhww authored Aug 23, 2021
2 parents a0cf12b + 43a6bec commit 8335849
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs/sharding/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- [`Builder`](#builder)
- [`DataCommitment`](#datacommitment)
- [`AttestedDataCommitment`](#attesteddatacommitment)
- [ShardBlobBody](#shardblobbody)
- [`ShardBlobBody`](#shardblobbody)
- [`ShardBlobBodySummary`](#shardblobbodysummary)
- [`ShardBlob`](#shardblob)
- [`ShardBlobHeader`](#shardblobheader)
Expand Down Expand Up @@ -257,7 +257,7 @@ class AttestedDataCommitment(Container):
includer_index: ValidatorIndex
```

### ShardBlobBody
### `ShardBlobBody`

Unsigned shard data, bundled by a shard-builder.
Unique, signing different bodies as shard proposer for the same `(slot, shard)` is slashable.
Expand Down Expand Up @@ -759,7 +759,7 @@ def process_shard_header(state: BeaconState, signed_header: SignedShardBlobHeade
commitment=body_summary.commitment,
root=header_root,
includer_index=get_beacon_proposer_index(state),
)
),
votes=initial_votes,
weight=0,
update_slot=state.slot,
Expand Down Expand Up @@ -885,7 +885,7 @@ def reset_pending_shard_work(state: BeaconState) -> None:
selector=SHARD_WORK_PENDING,
value=List[PendingShardHeader, MAX_SHARD_HEADERS_PER_SHARD](
PendingShardHeader(
attested=AttestedDataCommitment()
attested=AttestedDataCommitment(),
votes=Bitlist[MAX_VALIDATORS_PER_COMMITTEE]([0] * committee_length),
weight=0,
update_slot=slot,
Expand Down

0 comments on commit 8335849

Please sign in to comment.