leader qos part 2: add stage to find sender stake, set to packet meta

This commit is contained in:
Tao Zhu
2022-03-15 18:44:53 -05:00
committed by Tao Zhu
parent 976b138e76
commit fd515097d8
7 changed files with 176 additions and 97 deletions

View File

@ -32,7 +32,7 @@ pub struct Meta {
pub addr: IpAddr,
pub port: u16,
pub flags: PacketFlags,
pub weight: u64,
pub sender_stake: u64,
}
#[derive(Clone)]
@ -146,7 +146,7 @@ impl Default for Meta {
addr: IpAddr::V4(Ipv4Addr::UNSPECIFIED),
port: 0,
flags: PacketFlags::empty(),
weight: 0,
sender_stake: 0,
}
}
}