Skip to content

Commit de82774

Browse files
committed
Fix linter errors
1 parent 48a2bbd commit de82774

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/dvspec/eth_node_interface.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def bn_submit_block(block: SignedBeaconBlock) -> None:
8181
- https://ethereum.github.io/beacon-APIs/#/ValidatorRequiredApi/publishBlock
8282
"""
8383

84+
8485
def cache_attestation_data_for_vc(attestation_data: AttestationData, attestation_duty: AttestationDuty) -> None:
8586
"""Cache attestation data to provide to VC when it seeks new attestation data using the following method:
8687
https://ethereum.github.io/beacon-APIs/#/ValidatorRequiredApi/produceAttestationData
@@ -97,8 +98,8 @@ def cache_block_for_vc(block: BeaconBlock, proposer_duty: ProposerDuty) -> None:
9798

9899
def capture_threshold_signed_attestation(threshold_signed_attestation: Attestation) -> None:
99100
"""Captures a threshold signed attestation provided by the VC and starts the recombination process to
100-
construct a complete signed attestation to submit to the BN. The VC submits the attestation using the following method:
101-
https://ethereum.github.io/beacon-APIs/#/Beacon/submitPoolAttestations
101+
construct a complete signed attestation to submit to the BN. The VC submits the attestation using the
102+
following method: https://ethereum.github.io/beacon-APIs/#/Beacon/submitPoolAttestations
102103
"""
103104
broadcast_threshold_signed_attestation(threshold_signed_attestation)
104105

src/dvspec/spec.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
List,
44
)
55

6-
from eth2spec.phase0.mainnet import Attestation
7-
86
from .eth_node_interface import (
97
AttestationDuty,
108
ProposerDuty,
@@ -83,7 +81,7 @@ def serve_attestation_duty(attestation_duty: AttestationDuty) -> None:
8381
attestation_data = consensus_on_attestation(attestation_duty)
8482
# Release lock on consensus_on_attestation here.
8583
# Cache decided attestation data value to provide to VC
86-
cache_block_for_vc(attestation_data, attestation_duty)
84+
cache_attestation_data_for_vc(attestation_data, attestation_duty)
8785

8886

8987
def serve_proposer_duty(proposer_duty: ProposerDuty) -> None:
@@ -102,7 +100,7 @@ def serve_proposer_duty(proposer_duty: ProposerDuty) -> None:
102100
block = consensus_on_block(proposer_duty)
103101
# Release lock on consensus_on_block here.
104102
# Cache decided block value to provide to VC
105-
cache_attestation_data_for_vc(block, proposer_duty)
103+
cache_block_for_vc(block, proposer_duty)
106104

107105

108106
def threshold_attestation_combination() -> None:

0 commit comments

Comments
 (0)