Skip to content

Commit

Permalink
allow vote to have 1 or 2 sigs (#20082)
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones authored Sep 22, 2021
1 parent 14505f5 commit 431a822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion perf/src/sigverify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ fn check_for_simple_vote_transaction(
packet_offsets: &PacketOffsets,
current_offset: usize,
) -> Result<(), PacketError> {
if packet_offsets.sig_len != 1 {
// vote could have 1 or 2 sigs; zero sig has already been excluded at
// do_get_packet_offsets.
if packet_offsets.sig_len > 2 {
return Err(PacketError::InvalidSignatureLen);
}

Expand Down

0 comments on commit 431a822

Please sign in to comment.