[#708] morph/client: Add BlockCount method

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-07-21 18:12:19 +03:00 committed by Alex Vanin
parent dfbde0004e
commit 7e43af3de3

View file

@ -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()
}