Skip to content

Commit

Permalink
fix(privval): sign extension even when it's empty (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
melekes authored Mar 2, 2024
1 parent 26eb76f commit 83e8414
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/privval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,6 @@ impl SignableMsg {
) -> Result<(), Error> {
match self {
SignableMsg::Vote(vote) => {
if vote.extension.is_empty() {
return Err(Error::protocol(
"can't add signature to empty extension".into(),
));
}

vote.extension_signature = Some(signature.into());
Ok(())
}
Expand Down

0 comments on commit 83e8414

Please sign in to comment.