forked from TrueCloudLab/frostfs-node
[#708] morph/client: Add BlockCount method
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
dfbde0004e
commit
7e43af3de3
1 changed files with 6 additions and 0 deletions
|
@ -315,3 +315,9 @@ func toStackParameter(value interface{}) (sc.Parameter, error) {
|
|||
func (c *Client) MagicNumber() uint64 {
|
||||
return uint64(c.client.GetNetwork())
|
||||
}
|
||||
|
||||
// BlockCount returns block count of the network
|
||||
// to which the underlying RPC node client is connected.
|
||||
func (c *Client) BlockCount() (uint32, error) {
|
||||
return c.client.GetBlockCount()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue