From fe1b9961ff413d7ca72eab3e9525a8851b92fe56 Mon Sep 17 00:00:00 2001 From: ericsson Date: Mon, 23 Aug 2021 14:21:38 +0300 Subject: [PATCH 1/2] Fix typos in sharding.md --- specs/sharding/beacon-chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 2e2c3d487..c7e528810 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -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, From 43a6beceb68c7c60c5738c5dc00abec00b7c1d77 Mon Sep 17 00:00:00 2001 From: ericsson Date: Mon, 23 Aug 2021 14:46:06 +0300 Subject: [PATCH 2/2] make doctoc happy --- specs/sharding/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index c7e528810..031d8087f 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -32,7 +32,7 @@ - [`Builder`](#builder) - [`DataCommitment`](#datacommitment) - [`AttestedDataCommitment`](#attesteddatacommitment) - - [ShardBlobBody](#shardblobbody) + - [`ShardBlobBody`](#shardblobbody) - [`ShardBlobBodySummary`](#shardblobbodysummary) - [`ShardBlob`](#shardblob) - [`ShardBlobHeader`](#shardblobheader)