Add incomplete progress on fork choice

This commit is contained in:
Paul Hauner
2019-06-20 10:59:19 +10:00
parent 41a36da765
commit 85b23f9f1b
3 changed files with 119 additions and 48 deletions

View File

@@ -703,6 +703,9 @@ impl<T: EthSpec> BeaconState<T> {
let active_index_root = self.get_active_index_root(epoch, spec)?;
let epoch_bytes = int_to_bytes32(epoch.as_u64());
dbg!(randao);
dbg!(active_index_root);
let mut preimage = [0; 32 * 3];
preimage[0..32].copy_from_slice(&randao[..]);
preimage[32..64].copy_from_slice(&active_index_root[..]);