Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
BeaconNodeRequestFailure moved to validator_client.
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
g-r-a-n-t committed Jun 2, 2020
1 parent a5a87b1 commit 2882e5f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion eth2/validator_client/beacon_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Duty,
DutyType,
)
from trinity.exceptions import BeaconNodeRequestFailure
from eth2.validator_client.exceptions import BeaconNodeRequestFailure

SYNCING_POLL_INTERVAL = 10 # seconds
CONNECTION_RETRY_INTERVAL = 1 # second(s)
Expand Down
2 changes: 1 addition & 1 deletion eth2/validator_client/duty_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from eth2.validator_client.abc import BeaconNodeAPI
from eth2.validator_client.duty import AttestationDuty, Duty, DutyType
from eth2.validator_client.duty_store import DutyStore
from eth2.validator_client.exceptions import BeaconNodeRequestFailure
from eth2.validator_client.typing import RandaoProvider, ResolvedDuty
from trinity.exceptions import BeaconNodeRequestFailure

logger = logging.getLogger("eth2.validator_client.duty_scheduler")

Expand Down
6 changes: 6 additions & 0 deletions eth2/validator_client/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class BeaconNodeRequestFailure(Exception):
"""
Raised when a Beacon Node request fails.
"""

pass
2 changes: 1 addition & 1 deletion eth2/validator_client/signatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from eth2.beacon.typing import Operation, SignedOperation
from eth2.validator_client.abc import BeaconNodeAPI, SignatoryDatabaseAPI
from eth2.validator_client.duty import Duty, DutyType
from eth2.validator_client.exceptions import BeaconNodeRequestFailure
from eth2.validator_client.typing import PrivateKeyProvider
from trinity.exceptions import BeaconNodeRequestFailure

logger = logging.getLogger("eth2.validator_client.signatory")

Expand Down
7 changes: 0 additions & 7 deletions trinity/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,3 @@ class MetricsReportingError(BaseTrinityError):
Raised when there is an error while reporting metrics.
"""
pass


class BeaconNodeRequestFailure(BaseTrinityError):
"""
Raised when a request made to a Beacon Node fails.
"""
pass

0 comments on commit 2882e5f

Please sign in to comment.