mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Multiple BN HTTP resolver (#13433)
* http resolver * Redo * Revert "Redo" This reverts commit5437c44ac2. * Revert "http resolver" This reverts commit206207b530. * Add host change to ValidatorClient + Validator * Update mockgen * Tidy * Add mock validator * Update gomock * Gaz * Solve interface issues * Fix host * Fix test * Add tests * Add endpoint change log * Fix log * Gen mock * Fix test * Fix deepsource * Lint + deepsource * Move to healthCheckRoutine * Fix build errors * Switch host to string * Forgot a couple * Radek' review * Add PushProposerSettings to goroutine * Radek' review * James' review + test fix * Radek' suggestion Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Check if new node is healthy * Fix linter errors * Add host switch logic to ChangeHost * Lint + comment * Fix messy merge * rename ChangeHost to SetHost * improve log * remove log * switch one node * rename param --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: rkapka <radoslaw.kapka@gmail.com>
This commit is contained in:
@@ -87,7 +87,10 @@ func (acm *CLIManager) prepareBeaconClients(ctx context.Context) (*iface.Validat
|
||||
acm.beaconApiTimeout,
|
||||
)
|
||||
|
||||
restHandler := beaconApi.NewBeaconApiJsonRestHandler(http.Client{Timeout: acm.beaconApiTimeout}, acm.beaconApiEndpoint)
|
||||
restHandler := beaconApi.NewBeaconApiJsonRestHandler(
|
||||
http.Client{Timeout: acm.beaconApiTimeout},
|
||||
acm.beaconApiEndpoint,
|
||||
)
|
||||
validatorClient := validatorClientFactory.NewValidatorClient(conn, restHandler)
|
||||
nodeClient := nodeClientFactory.NewNodeClient(conn, restHandler)
|
||||
|
||||
|
||||
@@ -249,3 +249,11 @@ func (*Validator) EventStreamIsRunning() bool {
|
||||
func (*Validator) HealthTracker() *beacon.NodeHealthTracker {
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (*Validator) Host() string {
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (*Validator) ChangeHost() {
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user