Merge pull request #2563 from ericsson49/ericsson49/fix_typos_in_sharding_spec

Fix typos in sharding/beacon-chain.md, which break setup.py:get_spec processing
This commit is contained in:
Hsiao-Wei Wang 2021-08-23 23:34:21 +08:00 committed by GitHub
commit 8335849360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
- [`Builder`](#builder)
- [`DataCommitment`](#datacommitment)
- [`AttestedDataCommitment`](#attesteddatacommitment)
- [ShardBlobBody](#shardblobbody)
- [`ShardBlobBody`](#shardblobbody)
- [`ShardBlobBodySummary`](#shardblobbodysummary)
- [`ShardBlob`](#shardblob)
- [`ShardBlobHeader`](#shardblobheader)
@ -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.
@ -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,
@ -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,