Skip to content

Commit

Permalink
A0-0000: Don't assume we have a score submission period (#1934)
Browse files Browse the repository at this point in the history
# Description

This failed on the real chain, incl snapshots. Now it should never
submit in practice.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

# Checklist:
  • Loading branch information
timorleph authored Feb 5, 2025
1 parent 35181e3 commit e024c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fn get_aleph_runtime_vars(client: &Arc<FullClient>) -> AlephRuntimeVars {
let score_submission_period = client
.runtime_api()
.score_submission_period(finalized)
.expect("should always be available");
.unwrap_or(u32::MAX);

AlephRuntimeVars {
session_period,
Expand Down

0 comments on commit e024c5e

Please sign in to comment.