Simplifies the boolean-bitfield implementation to use bit-vec crate

This commit is contained in:
Alex Stokes
2018-10-24 12:21:51 +02:00
parent 2e2a1faff4
commit a9decd3aed
4 changed files with 119 additions and 277 deletions

View File

@@ -31,7 +31,7 @@ impl Encodable for AttestationRecord {
s.append(&self.shard_id);
s.append_vec(&self.oblique_parent_hashes);
s.append(&self.shard_block_hash);
s.append_vec(&self.attester_bitfield.to_be_vec());
s.append_vec(&self.attester_bitfield.to_bytes());
s.append(&self.justified_slot);
s.append(&self.justified_block_hash);
s.append_vec(&self.aggregate_sig.as_bytes());