From b17a15a378f096acbe6de5bb28836d78a6be1151 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 24 Oct 2018 14:48:35 +0200 Subject: [PATCH] Rename block preprocessing --- beacon_chain/chain/src/{blocks.rs => block_preprocessing.rs} | 5 +---- beacon_chain/chain/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) rename beacon_chain/chain/src/{blocks.rs => block_preprocessing.rs} (97%) diff --git a/beacon_chain/chain/src/blocks.rs b/beacon_chain/chain/src/block_preprocessing.rs similarity index 97% rename from beacon_chain/chain/src/blocks.rs rename to beacon_chain/chain/src/block_preprocessing.rs index 2ff8a245d..263782d30 100644 --- a/beacon_chain/chain/src/blocks.rs +++ b/beacon_chain/chain/src/block_preprocessing.rs @@ -54,11 +54,10 @@ impl From for BeaconChainBlockError { pub type BlockStatusTriple = (BeaconBlockStatus, Hash256, BeaconBlock); - impl BeaconChain where T: ClientDB + Sized { - pub fn process_incoming_block(&self, ssz: &[u8], rx_time: u64) + fn block_preprocessing(&self, ssz: &[u8], present_slot: u64) -> Result { /* @@ -102,8 +101,6 @@ impl BeaconChain let (attester_map, proposer_map) = self.attester_proposer_maps.get(&cry_state_root) .ok_or(BeaconChainBlockError::UnknownAttesterProposerMaps)?; - let present_slot = 100; // TODO: fix this - /* * Build a block validation context to test the block against. */ diff --git a/beacon_chain/chain/src/lib.rs b/beacon_chain/chain/src/lib.rs index baf315e17..ac62a4068 100644 --- a/beacon_chain/chain/src/lib.rs +++ b/beacon_chain/chain/src/lib.rs @@ -4,7 +4,7 @@ extern crate validator_induction; extern crate validator_shuffling; mod stores; -mod blocks; +mod block_preprocessing; mod maps; mod genesis;