Skip to content

refactor: improve the deadline module#423

Open
therustmonk wants to merge 15 commits into
mainfrom
kd-may18-errors
Open

refactor: improve the deadline module#423
therustmonk wants to merge 15 commits into
mainfrom
kd-may18-errors

Conversation

@therustmonk
Copy link
Copy Markdown
Collaborator

No description provided.

@therustmonk therustmonk changed the title WIP: improve the deadline module refactor: improve the deadline module May 19, 2026
@therustmonk therustmonk marked this pull request as ready for review May 19, 2026 16:09

/// Wall-clock start of the given slot: `genesis_time + slot *
/// slot_duration`.
fn slot_start(&self, slot: SlotNumber) -> Result<DateTime<Utc>> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to have a unit test for it


/// Network-delay margin added to every deadline: `slot_duration /
/// MARGIN_FACTOR`.
fn margin(&self) -> Result<Millis> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants