Updates to block validation

- Rename "parent_hashes" -> "recent_block_hashes"
- Expect block has to be computed prior to function
This commit is contained in:
Paul Hauner
2018-10-23 13:15:08 +02:00
parent 06c20857c8
commit a40b49d586
4 changed files with 9 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ pub struct AttestationValidationContext<T>
/// The last justified slot as per the client's view of the canonical chain.
pub last_justified_slot: u64,
/// A vec of the hashes of the blocks preceeding the present slot.
pub parent_hashes: Arc<Vec<Hash256>>,
pub recent_block_hashes: Arc<Vec<Hash256>>,
/// The store containing block information.
pub block_store: Arc<BeaconBlockStore<T>>,
/// The store containing validator information.
@@ -155,7 +155,7 @@ impl<T> AttestationValidationContext<T>
self.cycle_length,
self.block_slot,
a.slot,
&self.parent_hashes,
&self.recent_block_hashes,
&a.oblique_parent_hashes)?;
/*