diff --git a/v2/netmap/grpc/service.go b/v2/netmap/grpc/service.go index ae00b213..36ed88d0 100644 --- a/v2/netmap/grpc/service.go +++ b/v2/netmap/grpc/service.go @@ -60,3 +60,52 @@ func (m *LocalNodeInfoResponse) SetVerifyHeader(v *session.ResponseVerificationH m.VerifyHeader = v } } + +// SetBody sets body of the request. +func (x *NetworkInfoRequest) SetBody(v *NetworkInfoRequest_Body) { + if x != nil { + x.Body = v + } +} + +// SetMetaHeader sets meta header of the request. +func (x *NetworkInfoRequest) SetMetaHeader(v *session.RequestMetaHeader) { + if x != nil { + x.MetaHeader = v + } +} + +// SetVerifyHeader sets verification header of the request. +func (x *NetworkInfoRequest) SetVerifyHeader(v *session.RequestVerificationHeader) { + if x != nil { + x.VerifyHeader = v + } +} + +// SetNetworkInfo sets information about the network. +func (x *NetworkInfoResponse_Body) SetNetworkInfo(v *NetworkInfo) { + if x != nil { + x.NetworkInfo = v + } +} + +// SetBody sets body of the response. +func (x *NetworkInfoResponse) SetBody(v *NetworkInfoResponse_Body) { + if x != nil { + x.Body = v + } +} + +// SetMetaHeader sets meta header of the response. +func (x *NetworkInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) { + if x != nil { + x.MetaHeader = v + } +} + +// SetVerifyHeader sets verification header of the response. +func (x *NetworkInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) { + if x != nil { + x.VerifyHeader = v + } +} diff --git a/v2/netmap/grpc/types.go b/v2/netmap/grpc/types.go index e1e5a840..d3e2120f 100644 --- a/v2/netmap/grpc/types.go +++ b/v2/netmap/grpc/types.go @@ -160,3 +160,17 @@ func (m *NodeInfo) SetState(v NodeInfo_State) { m.State = v } } + +// SetCurrentEpoch sets number of the current epoch. +func (x *NetworkInfo) SetCurrentEpoch(v uint64) { + if x != nil { + x.CurrentEpoch = v + } +} + +// SetMagicNumber sets magic number of the sidechain. +func (x *NetworkInfo) SetMagicNumber(v uint64) { + if x != nil { + x.MagicNumber = v + } +}