rpc: add getblockheadercount call

See neo-project/neo-modules#504.
This commit is contained in:
Roman Khimov 2021-02-07 22:01:22 +03:00
parent 66471de9d2
commit e0c7a3b77c
5 changed files with 38 additions and 2 deletions

View file

@ -280,6 +280,18 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
},
},
},
"getblockheadercount": {
{
name: "positive",
invoke: func(c *Client) (interface{}, error) {
return c.GetBlockHeaderCount()
},
serverResponse: `{"jsonrpc":"2.0","id":1,"result":2021}`,
result: func(c *Client) interface{} {
return uint32(2021)
},
},
},
"getblocksysfee": {
{
name: "positive",