allow vote to have 1 or 2 sigs (#20082)

This commit is contained in:
Tao Zhu 2021-09-21 22:13:44 -05:00 committed by Justin Starry
parent 198929fe8b
commit 46757238de
1 changed files with 3 additions and 1 deletions

View File

@ -294,7 +294,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);
}