From 47fa6d108a9d7d0a5fbfc127219a34f1cfd86b39 Mon Sep 17 00:00:00 2001 From: Aditya Asgaonkar Date: Fri, 19 Nov 2021 18:27:47 -0800 Subject: [PATCH] Add parameter for score boost value --- specs/phase0/fork-choice.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/specs/phase0/fork-choice.md b/specs/phase0/fork-choice.md index 7310d6851..65783d34d 100644 --- a/specs/phase0/fork-choice.md +++ b/specs/phase0/fork-choice.md @@ -8,6 +8,7 @@ - [Introduction](#introduction) - [Fork choice](#fork-choice) - [Preset](#preset) + - [Configuration](#configuration) - [Helpers](#helpers) - [`LatestMessage`](#latestmessage) - [`Store`](#store) @@ -63,6 +64,12 @@ Any of the above handlers that trigger an unhandled exception (e.g. a failed ass | `SAFE_SLOTS_TO_UPDATE_JUSTIFIED` | `2**3` (= 8) | slots | 96 seconds | | `ATTESTATION_OFFSET_QUOTIENT` | `3` | - | - | +### Configuration + +| Name | Value | +| - | - | +| `PROPOSER_SCORE_BOOST_QUOTIENT` | `4` | + ### Helpers #### `LatestMessage` @@ -174,7 +181,7 @@ def get_latest_attesting_balance(store: Store, root: Root) -> Gwei: block_epoch = compute_epoch_at_slot(block_slot) committee_size = get_committee_count_per_slot(state, block_epoch) * TARGET_COMMITTEE_SIZE committee_weight = committee_size * avg_balance - proposer_score = committee_weight // 4 + proposer_score = committee_weight // PROPOSER_SCORE_BOOST_QUOTIENT return attestation_score + proposer_score ```