Add parameter for score boost value
This commit is contained in:
parent
281c1b2d1a
commit
47fa6d108a
|
@ -8,6 +8,7 @@
|
||||||
- [Introduction](#introduction)
|
- [Introduction](#introduction)
|
||||||
- [Fork choice](#fork-choice)
|
- [Fork choice](#fork-choice)
|
||||||
- [Preset](#preset)
|
- [Preset](#preset)
|
||||||
|
- [Configuration](#configuration)
|
||||||
- [Helpers](#helpers)
|
- [Helpers](#helpers)
|
||||||
- [`LatestMessage`](#latestmessage)
|
- [`LatestMessage`](#latestmessage)
|
||||||
- [`Store`](#store)
|
- [`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 |
|
| `SAFE_SLOTS_TO_UPDATE_JUSTIFIED` | `2**3` (= 8) | slots | 96 seconds |
|
||||||
| `ATTESTATION_OFFSET_QUOTIENT` | `3` | - | - |
|
| `ATTESTATION_OFFSET_QUOTIENT` | `3` | - | - |
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| - | - |
|
||||||
|
| `PROPOSER_SCORE_BOOST_QUOTIENT` | `4` |
|
||||||
|
|
||||||
### Helpers
|
### Helpers
|
||||||
|
|
||||||
#### `LatestMessage`
|
#### `LatestMessage`
|
||||||
|
@ -174,7 +181,7 @@ def get_latest_attesting_balance(store: Store, root: Root) -> Gwei:
|
||||||
block_epoch = compute_epoch_at_slot(block_slot)
|
block_epoch = compute_epoch_at_slot(block_slot)
|
||||||
committee_size = get_committee_count_per_slot(state, block_epoch) * TARGET_COMMITTEE_SIZE
|
committee_size = get_committee_count_per_slot(state, block_epoch) * TARGET_COMMITTEE_SIZE
|
||||||
committee_weight = committee_size * avg_balance
|
committee_weight = committee_size * avg_balance
|
||||||
proposer_score = committee_weight // 4
|
proposer_score = committee_weight // PROPOSER_SCORE_BOOST_QUOTIENT
|
||||||
return attestation_score + proposer_score
|
return attestation_score + proposer_score
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue