allow vote to have 1 or 2 sigs (#20082)
This commit is contained in:
parent
198929fe8b
commit
46757238de
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue