mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Add partial rlp encoding to active_state
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user