[#1793] node: Serve NetmapService.NetmapSnapshot
RPC
There is no more need to serve the same request on Control API. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
59de20fbba
commit
485a5418d2
33 changed files with 653 additions and 1238 deletions
|
@ -28,7 +28,12 @@ func (c *Client) GetNetMapByEpoch(epoch uint64) (*netmap.NetMap, error) {
|
|||
epochSnapshotMethod, err)
|
||||
}
|
||||
|
||||
return unmarshalNetmap(res, epochSnapshotMethod)
|
||||
nm, err := unmarshalNetmap(res, epochSnapshotMethod)
|
||||
if err == nil {
|
||||
nm.SetEpoch(epoch)
|
||||
}
|
||||
|
||||
return nm, err
|
||||
}
|
||||
|
||||
// GetCandidates receives information list about candidates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue