Add parameter for score boost value
This commit is contained in:
parent
281c1b2d1a
commit
47fa6d108a
|
@ -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
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue