Remove old fork_choice crate

This commit is contained in:
Paul Hauner
2019-06-23 15:05:16 +10:00
parent 77fba0b98e
commit 075c989375
25 changed files with 6 additions and 2690 deletions

View File

@@ -95,12 +95,13 @@ impl<T: BeaconChainTypes> BeaconBlockService for BeaconBlockServiceInstance<T> {
Ok(block) => {
match self.chain.process_block(block.clone()) {
Ok(outcome) => {
if outcome == BlockProcessingOutcome::Processed {
if let BlockProcessingOutcome::Processed { block_root } = outcome {
// Block was successfully processed.
info!(
self.log,
"Valid block from RPC";
"block_slot" => block.slot,
"block_root" => format!("{}", block_root),
);
// TODO: Obtain topics from the network service properly.