Skip to content

Commit b130c01

Browse files
authored
A0-0000: Don't assume we have a score submission period (#1934)
# 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:
1 parent 35181e3 commit b130c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/node/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ fn get_aleph_runtime_vars(client: &Arc<FullClient>) -> AlephRuntimeVars {
208208
let score_submission_period = client
209209
.runtime_api()
210210
.score_submission_period(finalized)
211-
.expect("should always be available");
211+
.unwrap_or(u32::MAX);
212212

213213
AlephRuntimeVars {
214214
session_period,

0 commit comments

Comments
 (0)