From 6cfd3b5047ec54e0a4250a2b262d71a87e99830c Mon Sep 17 00:00:00 2001 From: Justin Date: Sun, 30 Jun 2019 08:10:23 +0100 Subject: [PATCH 1/2] Fix typo Thanks @NIC619 https://github.com/ethereum/eth2.0-specs/pull/1219#discussion_r298818138 --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 3f834c19c..6ee3fd801 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1485,7 +1485,7 @@ def process_slashings(state: BeaconState) -> None: ```python def process_final_updates(state: BeaconState) -> None: current_epoch = get_current_epoch(state) - next_epoch = Shard(current_epoch + 1) + next_epoch = Epoch(current_epoch + 1) # Reset eth1 data votes if (state.slot + 1) % SLOTS_PER_ETH1_VOTING_PERIOD == 0: state.eth1_data_votes = [] From ae888e148c57c471f916f45f0696717f54699b2a Mon Sep 17 00:00:00 2001 From: Justin Date: Sun, 30 Jun 2019 08:13:07 +0100 Subject: [PATCH 2/2] Minor copyedit Can the linter catch non-capitalised comments? --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 3f834c19c..2e1b5d138 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1688,7 +1688,7 @@ def process_deposit(state: BeaconState, deposit: Deposit) -> None: assert verify_merkle_branch( leaf=hash_tree_root(deposit.data), proof=deposit.proof, - depth=DEPOSIT_CONTRACT_TREE_DEPTH + 1, # add 1 for the SSZ length mix-in + depth=DEPOSIT_CONTRACT_TREE_DEPTH + 1, # Add 1 for the `List` length mix-in index=state.eth1_deposit_index, root=state.eth1_data.deposit_root, )