Rename block preprocessing
This commit is contained in:
parent
e48e423b30
commit
b17a15a378
@ -54,11 +54,10 @@ impl From<SszBeaconBlockValidationError> for BeaconChainBlockError {
|
|||||||
|
|
||||||
pub type BlockStatusTriple = (BeaconBlockStatus, Hash256, BeaconBlock);
|
pub type BlockStatusTriple = (BeaconBlockStatus, Hash256, BeaconBlock);
|
||||||
|
|
||||||
|
|
||||||
impl<T> BeaconChain<T>
|
impl<T> BeaconChain<T>
|
||||||
where T: ClientDB + Sized
|
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<BlockStatusTriple, BeaconChainBlockError>
|
-> Result<BlockStatusTriple, BeaconChainBlockError>
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -102,8 +101,6 @@ impl<T> BeaconChain<T>
|
|||||||
let (attester_map, proposer_map) = self.attester_proposer_maps.get(&cry_state_root)
|
let (attester_map, proposer_map) = self.attester_proposer_maps.get(&cry_state_root)
|
||||||
.ok_or(BeaconChainBlockError::UnknownAttesterProposerMaps)?;
|
.ok_or(BeaconChainBlockError::UnknownAttesterProposerMaps)?;
|
||||||
|
|
||||||
let present_slot = 100; // TODO: fix this
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Build a block validation context to test the block against.
|
* Build a block validation context to test the block against.
|
||||||
*/
|
*/
|
@ -4,7 +4,7 @@ extern crate validator_induction;
|
|||||||
extern crate validator_shuffling;
|
extern crate validator_shuffling;
|
||||||
|
|
||||||
mod stores;
|
mod stores;
|
||||||
mod blocks;
|
mod block_preprocessing;
|
||||||
mod maps;
|
mod maps;
|
||||||
mod genesis;
|
mod genesis;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user