rpc: implement getvalidators

closes #714
This commit is contained in:
Anna Shaleva 2020-03-05 17:48:30 +03:00 committed by AnnaShaleva
parent f8eee778f4
commit 456a2d55fd
8 changed files with 113 additions and 1 deletions

View file

@ -82,6 +82,13 @@ var (
Namespace: "neogo",
},
)
getvalidatorsCalled = prometheus.NewCounter(
prometheus.CounterOpts{
Help: "Number of calls to getvalidators rpc endpoint",
Name: "getvalidators_called",
Namespace: "neogo",
},
)
getnep5balancesCalled = prometheus.NewCounter(
prometheus.CounterOpts{
@ -215,6 +222,7 @@ func init() {
getblocksysfeeCalled,
getconnectioncountCalled,
getcontractstateCalled,
getvalidatorsCalled,
getversionCalled,
getpeersCalled,
getrawmempoolCalled,