Add Chain Genesis Info to Node Connection Response (#7194)

* amend node connection response
* imports
This commit is contained in:
Raul Jordan
2020-09-08 15:54:56 -05:00
committed by GitHub
parent cb1f44872d
commit bd46abc71d
9 changed files with 338 additions and 179 deletions

View File

@@ -773,12 +773,14 @@ func (m *AuthResponse) GetTokenExpiration() uint64 {
}
type NodeConnectionResponse struct {
BeaconNodeEndpoint string `protobuf:"bytes,1,opt,name=beacon_node_endpoint,json=beaconNodeEndpoint,proto3" json:"beacon_node_endpoint,omitempty"`
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
BeaconNodeEndpoint string `protobuf:"bytes,1,opt,name=beacon_node_endpoint,json=beaconNodeEndpoint,proto3" json:"beacon_node_endpoint,omitempty"`
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
GenesisTime uint64 `protobuf:"varint,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
DepositContractAddress []byte `protobuf:"bytes,5,opt,name=deposit_contract_address,json=depositContractAddress,proto3" json:"deposit_contract_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeConnectionResponse) Reset() { *m = NodeConnectionResponse{} }
@@ -835,6 +837,20 @@ func (m *NodeConnectionResponse) GetSyncing() bool {
return false
}
func (m *NodeConnectionResponse) GetGenesisTime() uint64 {
if m != nil {
return m.GenesisTime
}
return 0
}
func (m *NodeConnectionResponse) GetDepositContractAddress() []byte {
if m != nil {
return m.DepositContractAddress
}
return nil
}
func init() {
proto.RegisterEnum("ethereum.validator.accounts.v2.CreateWalletRequest_KeymanagerKind", CreateWalletRequest_KeymanagerKind_name, CreateWalletRequest_KeymanagerKind_value)
proto.RegisterType((*CreateWalletRequest)(nil), "ethereum.validator.accounts.v2.CreateWalletRequest")
@@ -858,85 +874,87 @@ func init() {
}
var fileDescriptor_8a5153635bfe042e = []byte{
// 1237 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0xcf, 0x8f, 0xdb, 0xc4,
0x17, 0xc0, 0xbf, 0x93, 0x64, 0x77, 0xb3, 0x2f, 0x69, 0x9a, 0xce, 0x6e, 0xb7, 0xfe, 0xa6, 0x65,
0x37, 0xb5, 0xa0, 0x4d, 0x7f, 0x39, 0x28, 0xa5, 0xa5, 0xda, 0x0b, 0xda, 0x26, 0x51, 0xa9, 0xb6,
0xbf, 0x64, 0x2a, 0x90, 0xe0, 0x60, 0x4d, 0xec, 0x69, 0x62, 0x25, 0x19, 0x1b, 0x7b, 0xb2, 0x6d,
0xae, 0x15, 0x07, 0x2e, 0x5c, 0xe0, 0x80, 0x10, 0xb7, 0xfe, 0x07, 0x3d, 0x00, 0xff, 0x02, 0x47,
0x10, 0x17, 0x8e, 0xa8, 0xe2, 0x0f, 0x41, 0x9e, 0x19, 0xdb, 0x71, 0x94, 0x25, 0x59, 0x10, 0x27,
0x7b, 0xde, 0xbc, 0x79, 0xef, 0x33, 0x6f, 0xde, 0x7b, 0x33, 0x70, 0xc5, 0x0f, 0x3c, 0xee, 0x35,
0x8f, 0xc8, 0xc8, 0x75, 0x08, 0xf7, 0x82, 0x26, 0xb1, 0x6d, 0x6f, 0xc2, 0x78, 0xd8, 0x3c, 0x6a,
0x35, 0x9f, 0xd3, 0x9e, 0x45, 0x7c, 0xd7, 0x10, 0x3a, 0x78, 0x97, 0xf2, 0x01, 0x0d, 0xe8, 0x64,
0x6c, 0x24, 0xda, 0x46, 0xac, 0x6d, 0x1c, 0xb5, 0x6a, 0x17, 0x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xa1,
0xef, 0x10, 0x94, 0x67, 0x7b, 0xe9, 0xf2, 0x04, 0x5f, 0xd0, 0xbf, 0x6b, 0xef, 0x9d, 0x6c, 0x91,
0xa2, 0xdc, 0x15, 0x94, 0x1a, 0xde, 0x59, 0x4c, 0xd9, 0x7a, 0x85, 0x60, 0xfd, 0x43, 0x4a, 0x46,
0x7c, 0x80, 0xbf, 0x45, 0x70, 0xee, 0x1e, 0xe5, 0x77, 0x93, 0x22, 0x4f, 0x1b, 0xc4, 0xb1, 0xb1,
0xbb, 0xbd, 0x0c, 0x6a, 0x71, 0xa3, 0xd1, 0xaf, 0x0b, 0xac, 0x4b, 0xf8, 0xed, 0x2c, 0xd6, 0x40,
0x90, 0x34, 0x45, 0xf3, 0xb1, 0x93, 0x55, 0xad, 0xaf, 0x73, 0x50, 0x88, 0x7a, 0x20, 0x7e, 0x89,
0x60, 0xed, 0x81, 0xd7, 0x77, 0x19, 0xbe, 0xb6, 0xf4, 0xd2, 0x49, 0xdb, 0x6b, 0xed, 0xfa, 0x6a,
0xca, 0xd9, 0x90, 0xe9, 0x5b, 0x59, 0xb6, 0x51, 0xe4, 0x37, 0x3a, 0xce, 0x2f, 0x10, 0xac, 0x7f,
0xe4, 0xf6, 0xd9, 0xc4, 0xff, 0x2f, 0x29, 0xf6, 0x04, 0xc5, 0xff, 0xf5, 0xb9, 0xd2, 0x0b, 0x85,
0xe3, 0x7d, 0x74, 0xf5, 0x6e, 0xf9, 0xe7, 0x37, 0xbb, 0xe8, 0x97, 0x37, 0xbb, 0xe8, 0x8f, 0x37,
0xbb, 0xa8, 0xb7, 0x2e, 0x0e, 0xe6, 0xe6, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x1b, 0x92,
0xc8, 0x64, 0x0d, 0x00, 0x00,
// 1280 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x6f, 0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0xc1, 0xa7, 0x0c, 0x87, 0xda, 0x7b, 0x27, 0xdb, 0x64, 0x58, 0xae, 0x29, 0x96, 0x55, 0xba,
0x3a, 0x9d, 0x65, 0xfb, 0x25, 0x81, 0xf9, 0x0f, 0x91, 0xf5, 0xe5, 0x1e, 0xfd, 0x96, 0xc0, 0xb9,
0x7b, 0x28, 0xef, 0x66, 0x1d, 0x64, 0xd4, 0x7d, 0x8e, 0x8c, 0xdd, 0xed, 0x59, 0xa4, 0xa6, 0x77,
0x31, 0xeb, 0xba, 0xa2, 0x75, 0x89, 0xbe, 0x3d, 0x49, 0x6b, 0x4f, 0x31, 0x69, 0xa9, 0xce, 0xe6,
0x66, 0xbb, 0xda, 0x5f, 0xe7, 0xa0, 0x90, 0x34, 0x58, 0xfa, 0x82, 0xc0, 0xdc, 0x83, 0xa0, 0xc7,
0x05, 0xbd, 0x36, 0x73, 0xa2, 0x8d, 0x7a, 0x77, 0xed, 0xfa, 0xf1, 0xc0, 0x93, 0x21, 0xb3, 0x96,
0x27, 0xb9, 0xf5, 0x13, 0xbf, 0xc9, 0x75, 0x7e, 0x41, 0x60, 0xfe, 0x23, 0xde, 0x13, 0x83, 0xf0,
0xff, 0x64, 0xb1, 0xae, 0x58, 0xbc, 0x69, 0x1d, 0x2a, 0xbd, 0x58, 0x39, 0xde, 0x20, 0x57, 0xef,
0x96, 0x7f, 0x7e, 0xbd, 0x46, 0x7e, 0x79, 0xbd, 0x46, 0xfe, 0x7c, 0xbd, 0x46, 0x76, 0xe7, 0xd5,
0xc5, 0xdc, 0xfc, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x4c, 0x28, 0x55, 0xc1, 0x0d, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -2021,6 +2039,18 @@ func (m *NodeConnectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.DepositContractAddress) > 0 {
i -= len(m.DepositContractAddress)
copy(dAtA[i:], m.DepositContractAddress)
i = encodeVarintWebApi(dAtA, i, uint64(len(m.DepositContractAddress)))
i--
dAtA[i] = 0x2a
}
if m.GenesisTime != 0 {
i = encodeVarintWebApi(dAtA, i, uint64(m.GenesisTime))
i--
dAtA[i] = 0x20
}
if m.Syncing {
i--
if m.Syncing {
@@ -2355,6 +2385,13 @@ func (m *NodeConnectionResponse) Size() (n int) {
if m.Syncing {
n += 2
}
if m.GenesisTime != 0 {
n += 1 + sovWebApi(uint64(m.GenesisTime))
}
l = len(m.DepositContractAddress)
if l > 0 {
n += 1 + l + sovWebApi(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
@@ -4210,6 +4247,59 @@ func (m *NodeConnectionResponse) Unmarshal(dAtA []byte) error {
}
}
m.Syncing = bool(v != 0)
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field GenesisTime", wireType)
}
m.GenesisTime = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowWebApi
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.GenesisTime |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DepositContractAddress", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowWebApi
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthWebApi
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthWebApi
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DepositContractAddress = append(m.DepositContractAddress[:0], dAtA[iNdEx:postIndex]...)
if m.DepositContractAddress == nil {
m.DepositContractAddress = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipWebApi(dAtA[iNdEx:])

View File

@@ -169,4 +169,8 @@ message NodeConnectionResponse {
bool connected = 2;
// Whether the beacon node is currently synchronizing to chain head.
bool syncing = 3;
// The chain genesis time.
uint64 genesis_time = 4;
// Address of the validator deposit contract in the eth1 chain.
bytes deposit_contract_address = 5;
}

View File

@@ -675,12 +675,14 @@ func (m *AuthResponse) GetTokenExpiration() uint64 {
}
type NodeConnectionResponse struct {
BeaconNodeEndpoint string `protobuf:"bytes,1,opt,name=beacon_node_endpoint,json=beaconNodeEndpoint,proto3" json:"beacon_node_endpoint,omitempty"`
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
BeaconNodeEndpoint string `protobuf:"bytes,1,opt,name=beacon_node_endpoint,json=beaconNodeEndpoint,proto3" json:"beacon_node_endpoint,omitempty"`
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
GenesisTime uint64 `protobuf:"varint,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
DepositContractAddress []byte `protobuf:"bytes,5,opt,name=deposit_contract_address,json=depositContractAddress,proto3" json:"deposit_contract_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeConnectionResponse) Reset() { *m = NodeConnectionResponse{} }
@@ -729,6 +731,20 @@ func (m *NodeConnectionResponse) GetSyncing() bool {
return false
}
func (m *NodeConnectionResponse) GetGenesisTime() uint64 {
if m != nil {
return m.GenesisTime
}
return 0
}
func (m *NodeConnectionResponse) GetDepositContractAddress() []byte {
if m != nil {
return m.DepositContractAddress
}
return nil
}
func init() {
proto.RegisterEnum("ethereum.validator.accounts.v2.CreateWalletRequest_KeymanagerKind", CreateWalletRequest_KeymanagerKind_name, CreateWalletRequest_KeymanagerKind_value)
proto.RegisterType((*CreateWalletRequest)(nil), "ethereum.validator.accounts.v2.CreateWalletRequest")
@@ -752,84 +768,87 @@ func init() {
}
var fileDescriptor_8a5153635bfe042e = []byte{
// 1218 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0x4f, 0x8f, 0xdb, 0x44,
0x14, 0xc0, 0x99, 0x24, 0xbb, 0xc9, 0xbe, 0xa4, 0x69, 0x3a, 0xbb, 0xdd, 0x9a, 0xb4, 0x74, 0x53,
0x0b, 0xda, 0xf4, 0x9f, 0x83, 0x52, 0x5a, 0xaa, 0xbd, 0xa0, 0x6d, 0x12, 0x95, 0x6a, 0xfb, 0x4f,
0xa6, 0x02, 0x09, 0x0e, 0xd6, 0xc4, 0x9e, 0x26, 0x56, 0x92, 0xb1, 0xb1, 0x27, 0xdb, 0xe6, 0xba,
0xe2, 0xc0, 0x85, 0x0b, 0x1c, 0x10, 0xe2, 0xd6, 0x6f, 0xd0, 0x03, 0xf0, 0x39, 0x10, 0x17, 0x3e,
0x00, 0x1f, 0x04, 0x79, 0x66, 0x6c, 0xc7, 0x51, 0x96, 0x64, 0x41, 0x9c, 0xec, 0x79, 0xf3, 0xe6,
0xbd, 0xdf, 0xbc, 0x79, 0xef, 0xcd, 0xc0, 0x75, 0x3f, 0xf0, 0xb8, 0xd7, 0x3a, 0x22, 0x63, 0xd7,
0x21, 0xdc, 0x0b, 0x5a, 0xc4, 0xb6, 0xbd, 0x29, 0xe3, 0x61, 0xeb, 0xa8, 0xdd, 0x7a, 0x45, 0xfb,
0x16, 0xf1, 0x5d, 0x43, 0xe8, 0xe0, 0xcb, 0x94, 0x0f, 0x69, 0x40, 0xa7, 0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x62, 0x25, 0x6f, 0xda, 0x34, 0x85, 0x7e, 0x42, 0x50, 0x99, 0xef,
0xa5, 0xab, 0x13, 0x7c, 0x49, 0xff, 0xae, 0x7f, 0x74, 0xba, 0x45, 0x8a, 0xf2, 0xb2, 0xa0, 0xd4,
0xf0, 0xee, 0x72, 0xca, 0xf6, 0x1b, 0x04, 0x9b, 0x9f, 0x52, 0x32, 0xe6, 0x43, 0xfc, 0x23, 0x82,
0x0b, 0x0f, 0x29, 0x7f, 0x90, 0x14, 0x79, 0xda, 0x20, 0x4e, 0x8c, 0xdd, 0xbd, 0x55, 0x50, 0xcb,
0x1b, 0x8d, 0x7e, 0x4b, 0x60, 0x5d, 0xc5, 0xef, 0x67, 0xb1, 0x86, 0x82, 0xa4, 0x25, 0x9a, 0x8f,
0x9d, 0xac, 0x6a, 0x7f, 0x9f, 0x83, 0x42, 0xd4, 0x03, 0xf1, 0x31, 0x82, 0x8d, 0xc7, 0xde, 0xc0,
0x65, 0xf8, 0xe6, 0xca, 0x4b, 0x27, 0x6d, 0xaf, 0xf5, 0x5b, 0xeb, 0x29, 0x67, 0x43, 0xa6, 0x6f,
0x67, 0xd9, 0xc6, 0x91, 0xdf, 0xe8, 0x38, 0xbf, 0x41, 0xb0, 0xf9, 0x99, 0x3b, 0x60, 0x53, 0xff,
0xff, 0xa4, 0xd8, 0x13, 0x14, 0xef, 0xea, 0x0b, 0xa5, 0x17, 0x0a, 0xc7, 0xfb, 0xe8, 0x46, 0x7f,
0x53, 0x1c, 0xc5, 0x9d, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xea, 0x9d, 0x24, 0xf2, 0x56, 0x0d,
0x00, 0x00,
// 1265 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0x1b, 0xc5,
0x17, 0xff, 0xae, 0xed, 0x24, 0xce, 0xb3, 0x9b, 0xba, 0x93,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 0xac, 0x58, 0xda, 0x64, 0x7d, 0x36,
0xcb, 0xce, 0x1b, 0x0b, 0x16, 0x3f, 0x46, 0x3a, 0x90, 0xfb, 0xe4, 0x7b, 0x0b, 0x2e, 0x3c, 0x44,
0xf9, 0x20, 0xef, 0x20, 0xe3, 0xee, 0x73, 0x6c, 0xec, 0xee, 0xcd, 0x23, 0x35, 0xbb, 0x8b, 0x39,
0xb7, 0x14, 0xad, 0xab, 0xe4, 0xdd, 0x69, 0x5a, 0xfb, 0x8a, 0x49, 0x5b, 0x75, 0x36, 0x3f, 0xdf,
0xd5, 0xf9, 0xb6, 0x00, 0xa5, 0xb4, 0xc1, 0x92, 0xd7, 0x16, 0x2c, 0x3c, 0x16, 0x7d, 0xc6, 0xc9,
0xcd, 0xb9, 0x13, 0x6d, 0xdc, 0xbb, 0xeb, 0xb7, 0x4e, 0x06, 0x9e, 0x0e, 0x99, 0xb3, 0x3a, 0xcd,
0x6d, 0x90, 0xfa, 0x4d, 0xaf, 0xf3, 0x2b, 0x0b, 0x16, 0x3f, 0x61, 0x7d, 0x3e, 0x8c, 0xfe, 0x4b,
0x16, 0x1b, 0x8a, 0xc5, 0xff, 0x9d, 0x23, 0xa5, 0x97, 0x28, 0xc7, 0x9b, 0xd6, 0x8d, 0xbd, 0x45,
0x75, 0x15, 0x77, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xb7, 0x90, 0x4f, 0xb3, 0x0d, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@@ -44,6 +44,12 @@ type SyncChecker interface {
Syncing(ctx context.Context) (bool, error)
}
// GenesisFetcher can retrieve genesis information such as
// the genesis time and the validator deposit contract address.
type GenesisFetcher interface {
GenesisInfo(ctx context.Context) (*ethpb.Genesis, error)
}
// ValidatorService represents a service to manage the validator client
// routine.
type ValidatorService struct {
@@ -348,6 +354,13 @@ func (v *ValidatorService) Syncing(ctx context.Context) (bool, error) {
return resp.Syncing, nil
}
// GenesisInfo queries the beacon node for the chain genesis info containing
// the genesis time along with the validator deposit contract address.
func (v *ValidatorService) GenesisInfo(ctx context.Context) (*ethpb.Genesis, error) {
nc := ethpb.NewNodeClient(v.conn)
return nc.GetGenesis(ctx, &ptypes.Empty{})
}
// to accounts changes in the keymanager, then updates those keys'
// buckets in bolt DB if a bucket for a key does not exist.
func recheckValidatingKeysBucket(ctx context.Context, valDB db.Database, km v2.IKeymanager) {

View File

@@ -392,6 +392,7 @@ func (s *ValidatorClient) registerRPCService(cliCtx *cli.Context) error {
WalletInitializedFeed: s.walletInitialized,
ValidatorService: vs,
SyncChecker: vs,
GenesisFetcher: vs,
NodeGatewayEndpoint: nodeGatewayEndpoint,
})
return s.services.RegisterService(server)

View File

@@ -73,6 +73,7 @@ go_test(
"//validator/keymanager/v2/direct:go_default_library",
"@com_github_gogo_protobuf//types:go_default_library",
"@com_github_google_uuid//:go_default_library",
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
"@com_github_wealdtech_go_eth2_wallet_encryptor_keystorev4//:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//metadata:go_default_library",

View File

@@ -2,25 +2,36 @@ package rpc
import (
"context"
"time"
ptypes "github.com/gogo/protobuf/types"
pb "github.com/prysmaticlabs/prysm/proto/validator/accounts/v2"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
// GetBeaconNodeConnection retrieves the current beacon node connection
// information, as well as its sync status.
func (s *Server) GetBeaconNodeConnection(ctx context.Context, _ *ptypes.Empty) (*pb.NodeConnectionResponse, error) {
genesis, err := s.genesisFetcher.GenesisInfo(ctx)
if err != nil {
return nil, status.Errorf(codes.Internal, "Could not retrieve genesis information: %v", err)
}
syncStatus, err := s.syncChecker.Syncing(ctx)
if err != nil || s.validatorService.Status() != nil {
return &pb.NodeConnectionResponse{
BeaconNodeEndpoint: s.nodeGatewayEndpoint,
Connected: false,
Syncing: false,
GenesisTime: uint64(time.Unix(genesis.GenesisTime.Seconds, 0).Unix()),
DepositContractAddress: genesis.DepositContractAddress,
BeaconNodeEndpoint: s.nodeGatewayEndpoint,
Connected: false,
Syncing: false,
}, nil
}
return &pb.NodeConnectionResponse{
BeaconNodeEndpoint: s.nodeGatewayEndpoint,
Connected: true,
Syncing: syncStatus,
GenesisTime: uint64(time.Unix(genesis.GenesisTime.Seconds, 0).Unix()),
DepositContractAddress: genesis.DepositContractAddress,
BeaconNodeEndpoint: s.nodeGatewayEndpoint,
Connected: true,
Syncing: syncStatus,
}, nil
}

View File

@@ -3,8 +3,10 @@ package rpc
import (
"context"
"testing"
"time"
ptypes "github.com/gogo/protobuf/types"
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
pb "github.com/prysmaticlabs/prysm/proto/validator/accounts/v2"
"github.com/prysmaticlabs/prysm/shared/testutil/require"
"github.com/prysmaticlabs/prysm/validator/client"
@@ -18,6 +20,19 @@ func (m *mockSyncChecker) Syncing(ctx context.Context) (bool, error) {
return m.syncing, nil
}
type mockGenesisFetcher struct{}
func (m *mockGenesisFetcher) GenesisInfo(ctx context.Context) (*ethpb.Genesis, error) {
genesis, err := ptypes.TimestampProto(time.Unix(0, 0))
if err != nil {
return nil, err
}
return &ethpb.Genesis{
GenesisTime: genesis,
DepositContractAddress: []byte("hello"),
}, nil
}
func TestServer_GetBeaconNodeConnection(t *testing.T) {
ctx := context.Background()
endpoint := "localhost:90210"
@@ -27,15 +42,17 @@ func TestServer_GetBeaconNodeConnection(t *testing.T) {
walletInitialized: true,
validatorService: vs,
syncChecker: &mockSyncChecker{syncing: false},
genesisFetcher: &mockGenesisFetcher{},
nodeGatewayEndpoint: endpoint,
}
got, err := s.GetBeaconNodeConnection(ctx, &ptypes.Empty{})
require.NoError(t, err)
want := &pb.NodeConnectionResponse{
BeaconNodeEndpoint: endpoint,
Connected: false,
Syncing: false,
BeaconNodeEndpoint: endpoint,
Connected: false,
Syncing: false,
GenesisTime: uint64(time.Unix(0, 0).Unix()),
DepositContractAddress: []byte("hello"),
}
require.DeepEqual(t, want, got)
}

View File

@@ -39,6 +39,7 @@ type Config struct {
ValDB db.Database
ValidatorService *client.ValidatorService
SyncChecker client.SyncChecker
GenesisFetcher client.GenesisFetcher
WalletInitializedFeed *event.Feed
NodeGatewayEndpoint string
}
@@ -59,6 +60,7 @@ type Server struct {
jwtKey []byte
validatorService *client.ValidatorService
syncChecker client.SyncChecker
genesisFetcher client.GenesisFetcher
wallet *accountsv2.Wallet
walletInitializedFeed *event.Feed
walletInitialized bool
@@ -78,6 +80,7 @@ func NewServer(ctx context.Context, cfg *Config) *Server {
valDB: cfg.ValDB,
validatorService: cfg.ValidatorService,
syncChecker: cfg.SyncChecker,
genesisFetcher: cfg.GenesisFetcher,
walletInitializedFeed: cfg.WalletInitializedFeed,
walletInitialized: false,
nodeGatewayEndpoint: cfg.NodeGatewayEndpoint,