Renamed some functions, trying to get beaconnode attestation stuff to work.

This commit is contained in:
Luke Anderson
2019-03-27 14:30:09 +11:00
parent 1584469b7c
commit c9a7977d69
4 changed files with 10 additions and 13 deletions

View File

@@ -280,7 +280,7 @@ where
}
/// Produce an `AttestationData` that is valid for the present `slot` and given `shard`.
pub fn produce_attestation(&self, shard: u64) -> Result<AttestationData, Error> {
pub fn produce_attestation_data(&self, shard: u64) -> Result<AttestationData, Error> {
trace!("BeaconChain::produce_attestation: shard: {}", shard);
let source_epoch = self.state.read().current_justified_epoch;
let source_root = *self.state.read().get_block_root(