rpc: implement getblockheader RPC

closes #711
This commit is contained in:
Anna Shaleva 2020-03-04 20:35:37 +03:00
parent 8141d49e5a
commit 42e2aff381
5 changed files with 174 additions and 1 deletions

View file

@ -43,6 +43,14 @@ var (
},
)
getblockheaderCalled = prometheus.NewCounter(
prometheus.CounterOpts{
Help: "Number of calls to getblockheader rpc endpoint",
Name: "getblockheader_called",
Namespace: "neogo",
},
)
getblocksysfeeCalled = prometheus.NewCounter(
prometheus.CounterOpts{
Help: "Number of calls to getblocksysfee rpc endpoint",
@ -171,6 +179,7 @@ func init() {
getbestblockCalled,
getblockcountCalled,
getblockHashCalled,
getblockheaderCalled,
getblocksysfeeCalled,
getconnectioncountCalled,
getcontractstateCalled,