mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
204de13c86
* Revert "Revert "REST VC: Subscribe to Beacon API events (#13354)" (#13428)"
This reverts commit 8d092a1113
.
* change logic
* review
* test fix
* fix critical error
* merge flag check
* change error msg
* return on errors
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
17 lines
512 B
Go
17 lines
512 B
Go
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/golang/protobuf/ptypes/empty"
|
|
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
type NodeClient interface {
|
|
GetSyncStatus(ctx context.Context, in *empty.Empty) (*ethpb.SyncStatus, error)
|
|
GetGenesis(ctx context.Context, in *empty.Empty) (*ethpb.Genesis, error)
|
|
GetVersion(ctx context.Context, in *empty.Empty) (*ethpb.Version, error)
|
|
ListPeers(ctx context.Context, in *empty.Empty) (*ethpb.Peers, error)
|
|
IsHealthy(ctx context.Context) bool
|
|
}
|