Add partial rlp encoding to active_state
This commit is contained in:
parent
c9c6ada333
commit
0db5353854
@ -1,5 +1,6 @@
|
||||
use super::partial_crosslink_record::PartialCrosslinkRecord;
|
||||
use super::recent_proposer_record::RecentPropserRecord;
|
||||
use super::rlp::{ RlpStream, Encodable };
|
||||
use super::utils::types::*;
|
||||
|
||||
pub struct ActiveState {
|
||||
@ -34,6 +35,21 @@ impl ActiveState {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* RLP Encoding
|
||||
*/
|
||||
impl Encodable for ActiveState {
|
||||
fn rlp_append(&self, s: &mut RlpStream) {
|
||||
s.append(&self.height);
|
||||
s.append(&self.randao);
|
||||
s.append(&self.ffg_voter_bitfield);
|
||||
// s.append(&self.recent_attesters);
|
||||
// s.append(&self.partial_crosslinks);
|
||||
s.append(&self.total_skip_count);
|
||||
// s.append(&self.recent_proposers);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
Loading…
Reference in New Issue
Block a user