@@ -48,7 +48,7 @@ pub struct VotePlan {
4848 /// vote payload type
4949 payload_type : vote:: PayloadType ,
5050 /// encrypting votes public keys
51- committee_member_public_keys : Vec < chain_vote:: MemberPublicKey > ,
51+ committee_public_keys : Vec < chain_vote:: MemberPublicKey > ,
5252}
5353
5454#[ derive( Debug , Clone ) ]
@@ -190,15 +190,15 @@ impl VotePlan {
190190 committee_end : BlockDate ,
191191 proposals : Proposals ,
192192 payload_type : vote:: PayloadType ,
193- committee_member_public_keys : Vec < chain_vote:: MemberPublicKey > ,
193+ committee_public_keys : Vec < chain_vote:: MemberPublicKey > ,
194194 ) -> Self {
195195 Self {
196196 vote_start,
197197 vote_end,
198198 committee_end,
199199 proposals,
200200 payload_type,
201- committee_member_public_keys ,
201+ committee_public_keys ,
202202 }
203203 }
204204
@@ -244,8 +244,8 @@ impl VotePlan {
244244 self . payload_type
245245 }
246246
247- pub fn committee_member_public_keys ( & self ) -> & [ chain_vote:: MemberPublicKey ] {
248- & self . committee_member_public_keys
247+ pub fn committee_public_keys ( & self ) -> & [ chain_vote:: MemberPublicKey ] {
248+ & self . committee_public_keys
249249 }
250250
251251 #[ inline]
@@ -289,8 +289,8 @@ impl VotePlan {
289289
290290 pub fn serialize_in ( & self , bb : ByteBuilder < Self > ) -> ByteBuilder < Self > {
291291 let mut member_keys_buf: ByteBuilder < u8 > = ByteBuilder :: new ( ) ;
292- member_keys_buf = member_keys_buf. u64 ( self . committee_member_public_keys . len ( ) as u64 ) ;
293- for key in & self . committee_member_public_keys {
292+ member_keys_buf = member_keys_buf. u64 ( self . committee_public_keys . len ( ) as u64 ) ;
293+ for key in & self . committee_public_keys {
294294 let buf = key. to_bytes ( ) ;
295295 member_keys_buf = member_keys_buf. u64 ( buf. len ( ) as u64 ) . bytes ( & buf) ;
296296 }
@@ -444,12 +444,12 @@ impl Readable for VotePlan {
444444 }
445445
446446 let member_keys_len = buf. get_u64 ( ) ?;
447- let mut committee_member_public_keys = Vec :: new ( ) ;
447+ let mut committee_public_keys = Vec :: new ( ) ;
448448 for _ in 0 ..member_keys_len {
449449 let key_len = buf. get_u64 ( ) ?;
450450 let key_buf = buf. get_slice ( key_len as usize ) ?;
451451 // Unwrap should be ok here, since we did serialize it ourselves
452- committee_member_public_keys . push ( MemberPublicKey :: from_bytes ( key_buf) . unwrap ( ) ) ;
452+ committee_public_keys . push ( MemberPublicKey :: from_bytes ( key_buf) . unwrap ( ) ) ;
453453 }
454454
455455 Ok ( Self {
@@ -458,7 +458,7 @@ impl Readable for VotePlan {
458458 committee_end,
459459 proposals,
460460 payload_type,
461- committee_member_public_keys ,
461+ committee_public_keys ,
462462 } )
463463 }
464464}
0 commit comments