Add comments to new functions

This commit is contained in:
Paul Hauner
2019-03-03 15:32:44 +11:00
parent a29eca57a1
commit ec0e13b764
5 changed files with 33 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ macro_rules! ensure {
};
}
/// Returns `Ok(())` if some `AttesterSlashing` is valid to be included in some `BeaconState`,
/// otherwise returns an `Err`.
pub fn verify_slashable_attestation(
state: &mut BeaconState,
attester_slashing: &AttesterSlashing,