From 1ce25c19e8a62cd5c5c09594cc97e8bd43a272a4 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Fri, 11 Dec 2020 16:10:50 +0800 Subject: [PATCH] Minor fixes --- specs/phase1/beacon-chain.md | 37 +++++++++++++++++++++++++++++++++++- specs/phase1/fork-choice.md | 9 +-------- 2 files changed, 37 insertions(+), 9 deletions(-) diff --git a/specs/phase1/beacon-chain.md b/specs/phase1/beacon-chain.md index e2a46cd01..3f4ee9e46 100644 --- a/specs/phase1/beacon-chain.md +++ b/specs/phase1/beacon-chain.md @@ -10,9 +10,44 @@ - [Introduction](#introduction) - [Custom types](#custom-types) - [Configuration](#configuration) + - [Misc](#misc) + - [Shard block configs](#shard-block-configs) + - [Precomputed size verification points](#precomputed-size-verification-points) + - [Gwei values](#gwei-values) + - [Time parameters](#time-parameters) + - [Domain types](#domain-types) - [Updated containers](#updated-containers) + - [`AttestationData`](#attestationdata) + - [`BeaconBlock`](#beaconblock) + - [`BeaconState`](#beaconstate) - [New containers](#new-containers) + - [`DataCommitment`](#datacommitment) + - [`ShardHeader`](#shardheader) + - [`PendingShardHeader`](#pendingshardheader) - [Helper functions](#helper-functions) + - [Misc](#misc-1) + - [`compute_previous_slot`](#compute_previous_slot) + - [`compute_shard_from_committee_index`](#compute_shard_from_committee_index) + - [`compute_updated_gasprice`](#compute_updated_gasprice) + - [`compute_committee_source_epoch`](#compute_committee_source_epoch) + - [Beacon state accessors](#beacon-state-accessors) + - [Updated `get_committee_count_per_slot`](#updated-get_committee_count_per_slot) + - [`get_active_shard_count`](#get_active_shard_count) + - [`get_shard_committee`](#get_shard_committee) + - [`get_shard_proposer_index`](#get_shard_proposer_index) + - [`get_start_shard`](#get_start_shard) + - [Predicates](#predicates) + - [Block processing](#block-processing) + - [Operations](#operations) + - [New Attestation processing](#new-attestation-processing) + - [Updated `process_attestation`](#updated-process_attestation) + - [`update_pending_votes`](#update_pending_votes) + - [`process_shard_header`](#process_shard_header) + - [Shard transition processing](#shard-transition-processing) + - [Epoch transition](#epoch-transition) + - [Pending headers](#pending-headers) + - [Phase 1 final updates](#phase-1-final-updates) + - [Custody game updates](#custody-game-updates) @@ -551,7 +586,7 @@ def reset_pending_headers(state: BeaconState): ) state.current_epoch_pending_headers = [] # Add dummy "empty" PendingAttestations - # (default to vote for if no shard header availabl) + # (default to vote for if no shard header available) for slot in range(SLOTS_IN_EPOCH): for index in range(get_committee_count_per_slot(get_current_epoch(state))): shard = compute_shard_from_committee_index(state, index, slot) diff --git a/specs/phase1/fork-choice.md b/specs/phase1/fork-choice.md index 3accd2d10..858a0c872 100644 --- a/specs/phase1/fork-choice.md +++ b/specs/phase1/fork-choice.md @@ -8,14 +8,7 @@ - [Introduction](#introduction) - - [Updated data structures](#updated-data-structures) - - [Extended `Store`](#extended-store) - - [New data structures](#new-data-structures) - - [`ShardLatestMessage`](#shardlatestmessage) - - [`ShardStore`](#shardstore) - - [Updated helpers](#updated-helpers) - - [Updated `get_forkchoice_store`](#updated-get_forkchoice_store) - - [Updated `update_latest_messages`](#updated-update_latest_messages) +- [Dependency calculation](#dependency-calculation)