Add stubbed-out block processing to fork choice

This commit is contained in:
Paul Hauner
2019-06-16 16:39:48 -04:00
parent f6c86d0f7f
commit 9c2bbb6c05
4 changed files with 23 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ where
}
}
fn process_message(
fn process_attestation(
&self,
validator_index: usize,
block_hash: Hash256,
@@ -52,6 +52,11 @@ where
.map_err(Into::into)
}
/// Process a block that was seen on the network.
fn process_block(&self, block_hash: Hash256, block_slot: Slot) -> SuperResult<()> {
unimplemented!();
}
fn find_head<F>(&self, start_block_root: Hash256, weight_fn: F) -> SuperResult<Hash256>
where
F: Fn(usize) -> Option<u64> + Copy,