From e38f758d2168b9811f7463998d0b71ea58480f83 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Sun, 9 May 2021 17:08:54 -0700 Subject: [PATCH] `adjustment_quotient` to use `previous_epoch` --- specs/sharding/beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index e13ca6c5b..65a0e95b7 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -714,11 +714,11 @@ def process_pending_headers(state: BeaconState) -> None: ```python def charge_confirmed_header_fees(state: BeaconState) -> None: new_gasprice = state.shard_gasprice + previous_epoch = get_previous_epoch(state) adjustment_quotient = ( - get_active_shard_count(state, get_current_epoch(state)) + get_active_shard_count(state, previous_epoch) * SLOTS_PER_EPOCH * GASPRICE_ADJUSTMENT_COEFFICIENT ) - previous_epoch = get_previous_epoch(state) previous_epoch_start_slot = compute_start_slot_at_epoch(previous_epoch) for slot in range(previous_epoch_start_slot, previous_epoch_start_slot + SLOTS_PER_EPOCH): for shard_index in range(get_active_shard_count(state, previous_epoch)):