minor edit to validator get_attestation_signature

This commit is contained in:
Danny Ryan 2020-03-19 15:17:06 -06:00
parent 759af67345
commit 2978f21a39
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 3 additions and 3 deletions

View File

@ -407,9 +407,9 @@ Set `attestation.data = attestation_data` where `attestation_data` is the `Attes
Set `attestation.signature = attestation_signature` where `attestation_signature` is obtained from: Set `attestation.signature = attestation_signature` where `attestation_signature` is obtained from:
```python ```python
def get_attestation_signature(state: BeaconState, attestation: AttestationData, privkey: int) -> BLSSignature: def get_attestation_signature(state: BeaconState, attestation_data: AttestationData, privkey: int) -> BLSSignature:
domain = get_domain(state, DOMAIN_BEACON_ATTESTER, attestation.target.epoch) domain = get_domain(state, DOMAIN_BEACON_ATTESTER, attestation_data.target.epoch)
signing_root = compute_signing_root(attestation, domain) signing_root = compute_signing_root(attestation_data, domain)
return bls.Sign(privkey, signing_root) return bls.Sign(privkey, signing_root)
``` ```