Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in RoundId round stack handling #70

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions manul/src/protocol/round.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use alloc::{
collections::{BTreeMap, BTreeSet},
format,
string::String,
vec,
vec::Vec,
};
use core::{
Expand All @@ -13,7 +12,7 @@ use core::{

use rand_core::CryptoRngCore;
use serde::{Deserialize, Serialize};
use tinyvec::{tiny_vec, TinyVec};
use tinyvec::TinyVec;

use super::{
errors::{FinalizeError, LocalError, MessageValidationError, ProtocolValidationError, ReceiveError},
Expand Down Expand Up @@ -57,8 +56,10 @@ impl Display for RoundId {
impl RoundId {
/// Creates a new round identifier.
pub fn new(round_num: u8) -> Self {
let mut round_nums = TinyVec::new();
round_nums.push(round_num);
Self {
round_nums: tiny_vec!(round_num, 0, 0, 0),
round_nums,
is_echo: false,
}
}
Expand Down
Loading