Skip to content

Commit

Permalink
Merge branch 'master' into reduce-refunds
Browse files Browse the repository at this point in the history
  • Loading branch information
flmel authored Oct 1, 2024
2 parents 6acad90 + 87f4080 commit b418116
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs/ChainSpec/SelectingBlockProducers.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ validator_sampler = WeightedIndex([v.stake for v in validators])
return (validators, validator_sampler)
```

### Algorithm for selecting block producers
## Algorithm for selecting block producers

### Input

Expand All @@ -126,7 +126,7 @@ return (validators, validator_sampler)
select_validators(MAX_NUM_BP, min_stake_fraction, validator_proposals)
```

### Algorithm for selecting chunk producers
## Algorithm for selecting chunk producers

### Input

Expand Down Expand Up @@ -197,7 +197,7 @@ We sample validators with probability proportional to their stake using the foll
- `weighted_sampler: WeightedIndex`
- Allow $O(1)$ sampling
- This structure will be based on the
[WeightedIndex](https://rust-random.github.io/rand/rand/distributions/struct.WeightedIndex.html)
[WeightedIndex](https://docs.rs/rand/latest/rand/distributions/struct.WeightedIndex.html)
implementation (see a description of [Vose's Alias
Method](https://en.wikipedia.org/wiki/Alias_method) for details)

Expand Down

0 comments on commit b418116

Please sign in to comment.