Fix parent_hashes bug in message_generation

This commit is contained in:
Paul Hauner 2018-09-25 23:31:39 +10:00
parent 8d2e9f33c7
commit 9207a44bce
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -23,9 +23,7 @@ pub fn generate_signed_message(slot: u64,
*/
let mut ssz_stream = SszStream::new();
ssz_stream.append(&slot);
for h in parent_hashes {
ssz_stream.append_encoded_raw(&h.to_vec())
}
ssz_stream.append_vec(&parent_hashes.to_vec());
ssz_stream.append(&shard_id);
ssz_stream.append(shard_block_hash);
ssz_stream.append(&justified_slot);