Skip to content

Commit

Permalink
chore: better not contributing error message (#5368)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs authored Oct 31, 2024
1 parent 99bc666 commit bfd14ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/src/elections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ where
}
}
} else {
return Err(anyhow!("Validator as been unexpectedly set as not contributing."));
// We expect this to happen when a validator joins the set, since they won't be contributing, but will be a validator.
// Therefore they get Some() from `electoral_data` but `contributing` is false, until we reset the voting by throwing an error here.
return Err(anyhow!("Validator has just joined the authority set, or has been unexpectedly set as not contributing."));
}
} else {
info!("Not voting as not an authority.");
Expand Down

0 comments on commit bfd14ea

Please sign in to comment.