Skip to content

Commit 3225f33

Browse files
committed
sim-rs: remove L_vote restriction in EB production
1 parent 74fcac8 commit 3225f33

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

sim-rs/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
# Unreleased
4+
5+
## Linear Leios
6+
- Allow RBs to include EB certificates produced at least `L_diff` slots ago, instead of `L_vote + L_diff` slots ago. When `L_diff` is 0, this removes any direct time factor from the decision to include an EB cert.
7+
8+
# v0.1.0
9+
10+
This version was arbitrarily chosen as the point to start tracking major changes to the simulation.

sim-rs/sim-core/src/sim/linear_leios.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,7 @@ impl LinearLeiosNode {
509509

510510
let parent = self.latest_rb().map(|rb| rb.header.id);
511511
let endorsement = parent.and_then(|rb_id| {
512-
if rb_id.slot
513-
+ self.sim_config.linear_vote_stage_length
514-
+ self.sim_config.linear_diffuse_stage_length
515-
> slot
516-
{
512+
if rb_id.slot + self.sim_config.linear_diffuse_stage_length > slot {
517513
// This RB was generated too quickly after another; hasn't been time to gather all the votes.
518514
// No endorsement.
519515
return None;

0 commit comments

Comments
 (0)